summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2025-07-24 09:32:52 -0700
committerNamhyung Kim <namhyung@kernel.org>2025-07-25 10:37:57 -0700
commit5a156353e55e994627ac584e90b3b802e51e1ee2 (patch)
treed7a81a230b74a95ebe1f09f8b9f23662cf09e2ff /rust/helpers/helpers.c
parentb743a1368dea43b4ef6e51c2931eeada07556d87 (diff)
perf test: Avoid use perf_env
The perf_env global variable holds the host perf_env data but its use is hit and miss. Switch to using local perf_env variables and ensure scoped perf_env__init and perf_env__exit. This loses command line setting of the perf_env, but this doesn't matter for tests. So the perf_env is fully initialized, clear it with memset in perf_env__init. Signed-off-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20250724163302.596743-13-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions