diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2017-07-26 16:52:25 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-07-26 16:52:25 -0300 |
commit | c6c13be76c1fc8a3169dbd29cd1d42af1d64773f (patch) | |
tree | 14f31f566b560c62669385725461d124fca1b97a /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 82bf311e15d22e2fa45423b1fb4a21cf925381fe (diff) |
perf annotate: Do not overwrite perf_sample->weight
When we parse an event we may get a value from the kernel in response to
PERF_SAMPLE_WEIGHT being set in perf_event_attr->sample_type, and if it
is not set, then perf_sample->weight will be set to zero, which should
be ok according to a discussion with Andi Kleen [1]:
1: https://lkml.kernel.org/r/[email protected]
Acked-by: Andi Kleen <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Milian Wolff <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Taeung Song <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[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