perf jevents metric: Fix type of strcmp_cpuid_str
authorIan Rogers <irogers@google.com>
Thu, 14 Sep 2023 02:22:04 +0000 (19:22 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Sun, 17 Sep 2023 22:51:35 +0000 (15:51 -0700)
commitd1bac78e26e513ce2cf1b47fcc667b33f51c6a36
tree788fd453a677e79ad04c38d104e1ada571e79ae2
parent33b725ce7b9887569749fbbcdafc4ab089a09741
perf jevents metric: Fix type of strcmp_cpuid_str

The parser wraps all strings as Events, so the input is an
Event. Using a string would be bad as functions like Simplify are
called on the arguments, which wouldn't be present on a string.

Fixes: 9d5da30e4ae9 ("perf jevents: Add a new expression builtin strcmp_cpuid_str()")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@arm.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20230914022204.1488383-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/pmu-events/metric.py