comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Profiling using VxWorks and AdaMULTI.
Date: Thu, 31 May 2001 13:36:55 GMT
Date: 2001-05-31T13:36:55+00:00	[thread overview]
Message-ID: <XNrR6.6925$rn5.322145@www.newsranger.com> (raw)
In-Reply-To: 9f4oae$2tc$1@newstoo.ericsson.se

In article <9f4oae$2tc$1@newstoo.ericsson.se>, Petter Fryklund says...
>
>We've already been in contact with GHS, they haven't yet found out what
>TickTime is. I've also tried to get in contact with WRS. I've just hoping
>that somebody out there knew.

Well, it doesn't appear to be anything in vxWorks (which shouldn't be shocking,
since you apparently *don't* have it). I can't find any reference to it in
vxWorks 5.3 or 5.4, and it is not a symbol in our 5.4 kernel.

The only explanations I can think of are that it either:

a)  is a symbol that the GreenHills profiler uses. 

That seems rather unlikely, as it then wouldn't work for anyone.

b)  is a symbol used by some code of yours (most likely custom C code linked
into the kernel) that happens to have the same name as a kernel subroutine.
Everything in vxWorks exists in the same symbol space, so its quite possible for
this kind of thing to happen (another good reason to not use C). When linking a
kernel, I don't think there are any checks for undefined or redefined
references.

To check for b), first see if you have any (non-WindRiver) code being linked
into your kernel. If you do, look through it for the offending symbol. If its
found in there, you have 2 problems: 1 - there's an undefined symbol you have to
do something with; 2 - something that is calling that has the same name as a
kernel (or profiler) routine, and *must* be renamed.

We had something similar to b) happen to us. There was a C routine which we were
reusing from another project which happened to have a routine named "checksum"
in it. When we took our first kernel out to a system to try it out, we couldn't
get networking to work. We couldn't even ping the loopback address. It turns out
that "checksum" is also the name of a routine in the TCP/IP stack, and we were
inadvertantly replacing it with our C program's "checksum" routine. Whoops.



---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  reply	other threads:[~2001-05-31 13:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-30 11:12 Profiling using VxWorks and AdaMULTI Petter Fryklund
2001-05-30 13:32 ` Ted Dennison
2001-05-31  6:44   ` Petter Fryklund
2001-05-31 13:36     ` Ted Dennison [this message]
2001-05-31 20:13       ` Martin Dowie
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox