diff options
| author | Ian Rogers <[email protected]> | 2024-01-31 20:14:29 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-02-02 21:09:30 +0000 |
| commit | b8db070f389c902f48e83ee7a94952e9557199e8 (patch) | |
| tree | e5a49a2d79525b48fe425c9c60cf4f480f792f4e /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf parse-events: Print all errors (diff) | |
| download | kernel-b8db070f389c902f48e83ee7a94952e9557199e8.tar.gz kernel-b8db070f389c902f48e83ee7a94952e9557199e8.zip | |
perf jevents: Drop or simplify small integer values
Prior to this patch '0' would be dropped as the config values default
to 0. Some json values are hex and the string '0' wouldn't match '0x0'
as zero. Add a more robust is_zero test to drop these event terms.
When encoding numbers as hex, if the number is between 0 and 9
inclusive then don't add a 0x prefix.
Update test expectations for these changes.
On x86 this reduces the event/metric C string by 58,411 bytes.
Signed-off-by: Ian Rogers <[email protected]>
Reviewed-by: Kan Liang <[email protected]>
Cc: Edward Baker <[email protected]>
Cc: Perry Taylor <[email protected]>
Cc: Weilin Wang <[email protected]>
Cc: John Garry <[email protected]>
Cc: Jing Zhang <[email protected]>
Cc: Kajol Jain <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Veronika Molnarova <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
