diff options
| author | Cheng-Yang Chou <yphbchou0911@gmail.com> | 2026-06-30 22:06:23 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-06-30 04:17:54 -1000 |
| commit | b164760d7a648451f6621f11e3c1d3125f00305c (patch) | |
| tree | 7f3536379c1fa1db60e53d70fc85f12a7c824b07 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 0791de4c5a77b688ab3ffd9d8152a71a596cf374 (diff) | |
sched_ext: Replace open-coded event lists with SCX_EVENTS_LIST
Three sites enumerate every scx_event_stats field by name:
scx_read_events(), scx_attr_events_show(), and scx_dump_state().
Adding a new SCX_EV_* event requires three separate manual edits.
Missing any one silently drops counts or omits the field from
diagnostic output with no compile-time indication.
SCX_EVENTS_LIST(SCX_EVENT) in internal.h becomes the single
authoritative list of event names, so all three sites stay in sync.
No functional changes.
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
