diff options
author | K Prateek Nayak <kprateek.nayak@amd.com> | 2024-12-23 07:34:02 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2025-01-13 16:10:24 +0300 |
commit | d04013a4b21bd5a4e10c42f71ed1e5e299cacdfe (patch) | |
tree | 154480b3d24b82b643a3abe9422597160688d1c1 /tools/perf/scripts/python/task-analyzer.py | |
parent | fc1055d5334f1808e3e445592a83f31624b953f1 (diff) | |
download | linux-d04013a4b21bd5a4e10c42f71ed1e5e299cacdfe.tar.xz |
x86/itmt: Move the "sched_itmt_enabled" sysctl to debugfs
"sched_itmt_enabled" was only introduced as a debug toggle for any funky
ITMT behavior. Move the sysctl controlled from
"/proc/sys/kernel/sched_itmt_enabled" to debugfs at
"/sys/kernel/debug/x86/sched_itmt_enabled" with a notable change that a
cat on the file will return "Y" or "N" instead of "1" or "0" to
indicate that feature is enabled or disabled respectively. Either "0" or
"N" (or any string that kstrtobool() interprets as false) can be written
to the file will disable the feature, and writing either "1" or "Y" (or
any string that kstrtobool() interprets as true) will enable it back
when the platform supports ITMT ranking.
Since ITMT is x86 specific (and PowerPC uses SD_ASYM_PACKING too), the
toggle was moved to "/sys/kernel/debug/x86/" as opposed to
"/sys/kernel/debug/sched/"
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Link: https://lore.kernel.org/r/20241223043407.1611-4-kprateek.nayak@amd.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions