diff options
| author | Ze Gao <[email protected]> | 2024-01-23 07:02:11 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-02-02 06:10:27 +0000 |
| commit | 20018398fca87c914654252f7647a224e6b030ee (patch) | |
| tree | 937fb12b62bf7009a0f4210c0e7e5313d291eeb3 /tools/perf/util/setup.py | |
| parent | perf tools: Add -H short option for --hierarchy (diff) | |
| download | kernel-20018398fca87c914654252f7647a224e6b030ee.tar.gz kernel-20018398fca87c914654252f7647a224e6b030ee.zip | |
perf evsel: Rename get_states() to parse_task_states() and make it public
Since get_states() assumes the existence of libtraceevent, so move
to where it should belong, i.e, util/trace-event-parse.c, and also
rename it to parse_task_states().
Leave evsel_getstate() untouched as it fits well in the evsel
category.
Also make some necessary tweaks for python support, and get it
verified with: perf test python.
Signed-off-by: Ze Gao <[email protected]>
Cc: Steven Rostedt <[email protected]>
Signed-off-by: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/setup.py')
| -rw-r--r-- | tools/perf/util/setup.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py index 79d5e2955f85..3107f5aa8c9a 100644 --- a/tools/perf/util/setup.py +++ b/tools/perf/util/setup.py @@ -85,6 +85,7 @@ if '-DHAVE_LIBTRACEEVENT' in cflags: extra_libraries += [ 'traceevent' ] else: ext_sources.remove('util/trace-event.c') + ext_sources.remove('util/trace-event-parse.c') # use full paths with source files ext_sources = list(map(lambda x: '%s/%s' % (src_perf, x) , ext_sources)) |
