perf test: Remove C test wrapper for attr.py
authorIan Rogers <irogers@google.com>
Tue, 15 Oct 2024 00:01:57 +0000 (17:01 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 17 Oct 2024 20:17:36 +0000 (13:17 -0700)
commit3a447031f5fc21c4e112a5ca52d091d1ef33aeb6
tree30881d8d29ed650e3525f22115bbf332fe78f89e
parent8519e4f44c2af72214dc029f0334be068466e71f
perf test: Remove C test wrapper for attr.py

Remove the C wrapper now a shell script wrapper exists. Move
perf_event_attr dumping functions to evsel.c and reduce the scope of
variables/defines. Use fprintf to avoid snprintf complexities in
WRITE_ASS.

Add __SANE_USERSPACE_TYPES__ to evsel.c to fix format flag issues on
PowerPC triggered by moving attr.c functions to evsel.c.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: zhaimingbing <zhaimingbing@cmss.chinamobile.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ze Gao <zegao2021@gmail.com>
Cc: Weilin Wang <weilin.wang@intel.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Leo Yan <leo.yan@linux.dev>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Veronika Molnarova <vmolnaro@redhat.com>
Link: https://lore.kernel.org/r/20241015000158.871828-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/perf.c
tools/perf/tests/Build
tools/perf/tests/attr.c [deleted file]
tools/perf/tests/builtin-test.c
tools/perf/util/evsel.c
tools/perf/util/util.h