From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15414 invoked by alias); 21 Jul 2008 19:28:28 -0000 Received: (qmail 15406 invoked by uid 22791); 21 Jul 2008 19:28:28 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Jul 2008 19:28:02 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KL139-0003li-M8 for ecos-discuss@sources.redhat.com; Mon, 21 Jul 2008 19:27:59 +0000 Received: from 64.251.14.41 ([64.251.14.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jul 2008 19:27:59 +0000 Received: from grante by 64.251.14.41 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jul 2008 19:27:59 +0000 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Mon, 21 Jul 2008 19:28:00 -0000 Message-ID: References: <20080721190838.GX4167@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: slrn/pre0.9.9-102 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: Using instrument buffer by applications? X-SW-Source: 2008-07/txt/msg00071.txt.bz2 On 2008-07-21, Andrew Lunn wrote: >> Has anybody used the instrument buffer scheme to log >> application events? > > I have, but my events were over a short period of time. For my apps, there are going to be bursts of a few events separated by gaps that are pretty large (on the scale of the HAL counter). > Interestingly, if you look in > packages/kernel/current/src/instrmnt/meminst.cxx you will > find: > > #ifdef CYGVAR_KERNEL_COUNTERS_CLOCK > // p->timestamp = Cyg_Clock::real_time_clock->current_value_lo(); > HAL_CLOCK_READ( &p->timestamp ); > #else > p->timestamp = 0; > #endif > > so it looks like you can change from HW ticks to slower eCos > timer ticks. I saw that, but assumed it would break other stuff if I changed it. I thought about adding aonther field so that it recorded both the low 32 bits of the system tick counter and the value from HAL_CLOCK_READ(). That would get me a rollover at about 3 (1ms) or 30 years (10ms), but I'd still have a resolution of about 25ns. years with -- Grant Edwards grante Yow! Hello... IRON at CURTAIN? Send over a visi.com SAUSAGE PIZZA! World War III? No thanks! -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss