diff options
| author | Ian Rogers <[email protected]> | 2025-07-24 16:32:52 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-07-25 17:37:57 +0000 |
| commit | 5a156353e55e994627ac584e90b3b802e51e1ee2 (patch) | |
| tree | d7a81a230b74a95ebe1f09f8b9f23662cf09e2ff /tools/perf/builtin-inject.c | |
| parent | perf header: Clean up use of perf_env (diff) | |
| download | kernel-5a156353e55e994627ac584e90b3b802e51e1ee2.tar.gz kernel-5a156353e55e994627ac584e90b3b802e51e1ee2.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/builtin-inject.c')
0 files changed, 0 insertions, 0 deletions
