diff options
author | David Ahern <[email protected]> | 2011-04-06 21:54:20 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-04-20 07:27:52 -0300 |
commit | 9cbdb702092a2d82f909312f4ec3eeded77bb82e (patch) | |
tree | db5f06a2b534c2731c5da085a5a995b230c0091c /tools/perf/scripts/python | |
parent | 0817a6a3a4fc7c069111083351ca33a78da2a0c9 (diff) |
perf script: improve validation of sample attributes for output fields
Check for required sample attributes using evsel rather than sample_type
in the session header. If the attribute for a default field is not
present for the event type (e.g., new command operating on file from
older kernel) the field is removed from the output list.
Expected event types must exist. For example, if a user specifies
-f trace:time,trace -f sw:time,cpu,sym
the perf.data file must contain both tracepoints and software events
(ie., it is an error if either does not exist in the file).
Attribute checking is done once at the beginning of perf-script rather
than for each sample.
v1 -> v2:
- addressed comments from acme
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: David Ahern <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions