This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: workqueue testsuite - optional probes
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Turgis, Frederic" <f-turgis at ti dot com>
- Cc: SystemTap <systemtap at sourceware dot org>
- Date: Tue, 15 Nov 2011 16:01:30 -0500
- Subject: Re: workqueue testsuite - optional probes
- References: <28BE1A38672C8B4481BB423D0FD1F22EEA1A@DNCE03.ent.ti.com>
Hi, Frederic -
> - I met some issues with workqueue tapset:
> * tracepoints are too old but test testsuite/buildok/irq-detailed.stp succeeds:
> + testsuite uses "probe workqueue.execute ?" so optional probe. [...]
We'd need a dejagnu .exp-time divination to see whether the probe should exist,
and skip the test with "untested $test" otherwise.
> + tapset also uses "?" in definition of the probe. [...]
We mark way too many tapset (and synthetic) probes with ?. Optionality should be
decided by the end user script, not the tapset.
> * there are now tracepoints for execution start/end, activation
> and insertion. There is then no equivalent for creation and
> destruction. I guess we port then to functions, not tracepoints ?
Could be -- or lament to LKML to get those tracepoints created.
The tapset can define the abstract probe point thusly:
probe worksomething.something = kernel.trace("something") !,
kernel.function("foo_something") { ... }
Or sometimes in two steps (in case $params are too different to be pulled out
with a common
if (@defined($par)) par = $par
type code.
> * trace point "trace_workqueue_execute_start(work)" [...]
> Pass 2: getting a tracepoint query for 1 headers:
> xxx/omap//include/trace/events/workqueue.h
> ...
> include/trace/events/workqueue.h:37: error: 'struct cpu_workqueue_struct' declared inside parameter list
> include/trace/events/workqueue.h:37: error: its scope is only this definition or declaration, which is probably not what you want
See tapsets.cxx:tracepoint_extra_decls() for hacks sometimes needed
for incomplete kernel headers.
- FChE