* perf_events: issue with scaling information
@ 2009-10-08 14:12 stephane eranian
0 siblings, 0 replies; only message in thread
From: stephane eranian @ 2009-10-08 14:12 UTC (permalink / raw)
To: LKML; +Cc: Paul Mackerras, Ingo Molnar, Peter Zijlstra, perfmon2-devel
Hi,
With libpfm4, I have developed a set of examples which are using
perf_events to demonstrate typical counting and sampling scenarios.
In two of the sampling program, it appears time_enabled, time_running
included in the samples are incorrect.
The program notify_self.c uses IOC_REFRESH to get a notification for
each sample. The first sample comes out with time_running = time_enabled =0,
subsequent samples return non-zero information. I suspect something is
wrong initially because of IOC_REFRESH. This is using an event group.
The program task_smpl.c is sampling another process. Although the scaling
information is requested, all samples come out with time_running =
time_enabled=0.
The rest of the sample is correct, so it's not like I am not correctly
reading the
sample. The program is using an event group.
I suspect both issues may be related.
You can obtain the test programs (which are open-source!), by cloning
the GIT tree
at:
git://perfmon2.git.sourceforge.net/gitroot/perfmon2/libpfm4
Thanks.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-08 14:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-08 14:12 perf_events: issue with scaling information stephane eranian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®