public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* RE: get the mapping of <key, syscallname>
@ 2006-05-15 17:41 Stone, Joshua I
  0 siblings, 0 replies; 10+ messages in thread
From: Stone, Joshua I @ 2006-05-15 17:41 UTC (permalink / raw)
  To: Frank Ch. Eigler, Li Guanglei; +Cc: systemtap

On Sunday, May 14, 2006 1:25 PM, Frank Ch. Eigler wrote:
> Second, probe handlers constructed from distinct probe/alias bodies
> may be collapsed, if they turn out to be equivalent after
> optimization.  One might think of it as a generalization of graydon's
> "flavour" calculations in tapsets.cxx.

Of course, in the syscall.* case, simply using 'name' will make every
handler appear unique...


Josh

^ permalink raw reply	[flat|nested] 10+ messages in thread
* get the mapping of <key, syscallname>
@ 2006-05-11  2:05 Li Guanglei
  2006-05-11 18:14 ` Martin Hunt
  2006-05-12 15:08 ` Frank Ch. Eigler
  0 siblings, 2 replies; 10+ messages in thread
From: Li Guanglei @ 2006-05-11  2:05 UTC (permalink / raw)
  To: systemtap

Hi,
  One of my tapsets will log the syscall name got from
CONTEXT->probe_point. But string printing is costly so I want to log
the key of syscall name, and later the post-processing app in user
space will figure out the syscall name represented by corresponding keys.
  But this requires to generate a mapping of pairs of <key,
syscallname> at probe begin. The CONTEXT->probe_point is stored in
dwarf_kprobe_probe_??_location_names, so I can use the address of each
syscall name as the key and in the probe handler I can simply log the
pointer instead of a string. But since there are many probe points
defined beside syscall in my tapsets, I can't figure out which
dwarf_kprobe_probe_.._location_names variable the syscall name is stored.
  Do you have any ideas about this? Thanks.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-05-15 17:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-15 17:41 get the mapping of <key, syscallname> Stone, Joshua I
  -- strict thread matches above, loose matches on Subject: below --
2006-05-11  2:05 Li Guanglei
2006-05-11 18:14 ` Martin Hunt
2006-05-12 15:08 ` Frank Ch. Eigler
2006-05-12 16:06   ` Jose R. Santos
2006-05-12 16:12     ` Frank Ch. Eigler
2006-05-12 16:40       ` Jose R. Santos
2006-05-13  7:18       ` Li Guanglei
2006-05-14 20:26         ` Frank Ch. Eigler
2006-05-15 16:39         ` Hien Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).