diff options
| author | Ian Rogers <irogers@google.com> | 2024-02-09 12:49:45 -0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2024-02-13 13:48:06 -0800 |
| commit | 6dd76680b925228312756c13b9b983661b552a64 (patch) | |
| tree | 170ad509e582e8c7e9dac6ef6332b0e7fcd71333 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | perf expr: Allow NaN to be a valid number (diff) | |
| download | linux-6dd76680b925228312756c13b9b983661b552a64.tar.gz linux-6dd76680b925228312756c13b9b983661b552a64.zip | |
perf expr: Fix "has_event" function for metric style events
Events in metrics cannot use '/' as a separator, it would be
recognized as a divide, so they use '@'. The '@' is recognized in the
metricgroups code and changed to '/', do the same in the has_event
function so that the parsing is only tried without the @s.
Fixes: 4a4a9bf9075f ("perf expr: Add has_event function")
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Cc: K Prateek Nayak <kprateek.nayak@amd.com>
Cc: James Clark <james.clark@arm.com>
Cc: Kaige Ye <ye@kaige.org>
Cc: John Garry <john.g.garry@oracle.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240209204947.3873294-3-irogers@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
