public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/12147] New: Automagically include kernel data when needed through pragma:kernel_data
@ 2010-10-21 12:44 mjw at redhat dot com
  0 siblings, 0 replies; only message in thread
From: mjw at redhat dot com @ 2010-10-21 12:44 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=12147

           Summary: Automagically include kernel data when needed through
                    pragma:kernel_data
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: mjw@redhat.com


There should be a new embedded C pragma:kernel_data or something similar so
that functions like modname(), symname() and symdata() can indicate they need
access to it.

It could work similar to pragma:vma which slurps in the vdso data for example.
See usage of /* pragma:vma */ usage in tapset/ucontext.stp, detection in
elaborate.cc visit_embeddedcode () and usage of that information through
enable_vma_tracker () and emit_symbol_data () in translate.cxx.

This would make scripts that use symbol data translation functions work out of
the box without needing to know whether other probes (through kprobes) slurp in
the kernel data already or not.

Simplest testcase: stap -e 'probe begin { log(symdata(0xffffffff81d90ca0)) }'
(which currently doesn't work unless -d kernel is explicitly given)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-21 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-21 12:44 [Bug translator/12147] New: Automagically include kernel data when needed through pragma:kernel_data mjw at redhat dot com

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).