diff options
author | David Carrillo-Cisneros <[email protected]> | 2017-07-17 21:25:34 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-07-18 23:14:27 -0300 |
commit | 6200e49423f8023eba54cf0b01076d6f8c0af6ae (patch) | |
tree | 5d7d3edbe1356d1980b5c0b9503888a6886b982c /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 8b8ef2d74dec305b99dd43ec71d3ba2f502100b9 (diff) |
perf header: Encapsulate read and swap
Most callers of readn() in perf header read either a 32 or a 64 bits
number, error check it and swap it, if necessary.
Create do_read_u32 and do_read_u64 to simplify these use cases.
Signed-off-by: David Carrillo-Cisneros <[email protected]>
Acked-by: David Ahern <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Turner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Simon Que <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions