perf sched: Use RC_CHK_EQUAL() to compare pointers
authorNamhyung Kim <namhyung@kernel.org>
Thu, 3 Jul 2025 01:49:40 +0000 (18:49 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 3 Jul 2025 18:43:16 +0000 (11:43 -0700)
commit7a4002ec9e0fced907179da94f67c3082d7b4162
tree41a005db85947a9a755545b1d5c555614f9f2729
parent117e5c33b1c44037af016d77ce6c0b086d55535f
perf sched: Use RC_CHK_EQUAL() to compare pointers

So that it can check two pointers to the same object properly when
REFCNT_CHECKING is on.

Fixes: 78c32f4cb12f9430 ("libperf rc_check: Add RC_CHK_EQUAL")
Reviewed-by: Ian Rogers <irogers@google.com>
Tested-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250703014942.1369397-7-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-sched.c