perf util: Add evsel__taskstate() to parse the task state info instead
authorZe Gao <zegao2021@gmail.com>
Mon, 22 Jan 2024 07:08:58 +0000 (02:08 -0500)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 23 Jan 2024 07:02:37 +0000 (23:02 -0800)
commitdf8bc77e4a6b2d29bab0a092e1ed30fcabdea35e
treed4673b84c3d68d836e2568c988a8930b16b9d206
parent2f29a74f1dffe463d457b11cb39421a45c82044f
perf util: Add evsel__taskstate() to parse the task state info instead

Now that we have the __prinf_flags() parsing routines, we add a new
helper evsel__taskstate() to extract the task state info from the
recorded data.

Signed-off-by: Ze Gao <zegao@tencent.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20240122070859.1394479-5-zegao@tencent.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/evsel.c
tools/perf/util/evsel.h