]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf tools: Simplify evsel__add_modifier()
authorNamhyung Kim <namhyung@kernel.org>
Wed, 16 Oct 2024 06:23:53 +0000 (23:23 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 22 Oct 2024 16:52:11 +0000 (09:52 -0700)
commitd9e0970f77b92b0e2afff5e4a9e379bc9885df56
tree7a69a453dcdfb25d00ea61d479edb46f84b40377
parent35c8d21371e9b342dbd91a8e9b1abaabaec95d41
perf tools: Simplify evsel__add_modifier()

Since it doesn't set the exclude_guest, no need to special handle the
bit and simply show only if one of host or guest bit is set.  Now the
default event name might not have :H prefix anymore so change the
dlfilter test not to compare the ":" at the end.

Reviewed-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Reviewed-by: Ravi Bangoria <ravi.bangoria@amd.com>
Acked-by: Kan Liang <kan.liang@linux.intel.com>
Cc: James Clark <james.clark@arm.com>
Cc: Atish Patra <atishp@atishpatra.org>
Cc: Mingwei Zhang <mizhang@google.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20241016062359.264929-4-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/dlfilters/dlfilter-test-api-v0.c
tools/perf/dlfilters/dlfilter-test-api-v2.c
tools/perf/util/evsel.c