diff options
| author | Adrian Hunter <[email protected]> | 2013-07-04 16:20:27 +0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-07-12 13:53:48 -0300 |
| commit | 27389d7823f573be8eaff32fb4abe564e181eb71 (patch) | |
| tree | 78ff82f355707600ddf2258b6c5e90286d968f8a /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 93edcbd91d888c7530c7fc749176fc935b8e2287 (diff) | |
perf tools: Validate perf event header size
The 'size' variable includes the header so must be at least
'sizeof(struct perf_event_header)'. Error out immediately if that is
not the case. Also don't byte-swap the header until it is actually
"fetched" from the mmap region.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions