diff options
| author | James Clark <[email protected]> | 2023-01-20 14:36:55 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-01-22 21:17:32 +0000 |
| commit | d50a79cd0f391cbfdc3d9a6165e247d084f94dd3 (patch) | |
| tree | 0ea966d9eaa89a5144f1f6cb8e7e2ecc1a427398 /tools/perf/tests/bpf-script-example.c | |
| parent | perf pmu: Remove duplication around EVENT_SOURCE_DEVICE_PATH (diff) | |
| download | kernel-d50a79cd0f391cbfdc3d9a6165e247d084f94dd3.tar.gz kernel-d50a79cd0f391cbfdc3d9a6165e247d084f94dd3.zip | |
perf pmu: Use perf_pmu__open_file() and perf_pmu__scan_file()
Remove some code that duplicates existing methods. Copy strings where
const strings are required.
No functional changes.
Committer notes:
Add a stub for erf_pmu__scan_file() in tools/perf/util/python.c not to
drag tools/perf/util/pmu.c into the python binding.
This fixes 'perf test python' at this point in this patchset.
Reviewed-by: Leo Yan <[email protected]>
Signed-off-by: James Clark <[email protected]>
Acked-by: Suzuki Poulouse <[email protected]>
Tested-by: Tanmay Jagdale <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Bharat Bhushan <[email protected]>
Cc: George Cherian <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: John Garry <[email protected]>
Cc: Linu Cherian <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: Mike Leach <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sunil Kovvuri Goutham <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/tests/bpf-script-example.c')
0 files changed, 0 insertions, 0 deletions
