]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf sched: Commit to evsel__taskstate() to parse task state info
authorZe Gao <zegao2021@gmail.com>
Tue, 23 Jan 2024 02:24:25 +0000 (21:24 -0500)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 23 Jan 2024 07:02:46 +0000 (23:02 -0800)
commit68f87f24f953cf3147afa01ef123d8fd3c1162b6
tree3c2cc479c44229990c3731214a764c1491bcbf82
parentdf8bc77e4a6b2d29bab0a092e1ed30fcabdea35e
perf sched: Commit to evsel__taskstate() to parse task state info

Now that we have evsel__taskstate() which no longer relies on the
hardcoded task state string and has good backward compatibility,
we have a good reason to use it.

Note TASK_STATE_TO_CHAR_STR and task bitmasks are useless now so
we remove them for good. And now we pass the state info back and
forth in a symbolic char which explains itself well instead.

Signed-off-by: Ze Gao <zegao@tencent.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20240123022425.1611483-1-zegao@tencent.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-sched.c