diff options
author | Ian Rogers <irogers@google.com> | 2024-02-09 23:49:45 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-27 01:17:05 +0300 |
commit | f7e001e47b54cb9038529eeb448e81a0e2bfd85c (patch) | |
tree | 52da2b9ddc0d9550c48c07e448ca28fb04527a3e /block/blk-iocost.c | |
parent | 0abbd9b5e9578279e62618119518e940b5085b03 (diff) | |
download | linux-f7e001e47b54cb9038529eeb448e81a0e2bfd85c.tar.xz |
perf expr: Fix "has_event" function for metric style events
[ Upstream commit 6dd76680b925228312756c13b9b983661b552a64 ]
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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block/blk-iocost.c')
0 files changed, 0 insertions, 0 deletions