diff options
| author | Bradley Morgan <include@grrlz.net> | 2026-09-30 00:09:42 +0900 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-10-03 09:27:54 +0900 |
| commit | 0d4cbc5e83baccd73ebcb0ac975980d66347d5a8 (patch) | |
| tree | 592a3ba756bf1848234b315731d5ea61225ce544 /scripts/basic/split-include.c | |
| parent | 313cb5169f1a68d056af6ec37651198c21156e56 (diff) | |
| download | linux-0d4cbc5e83baccd73ebcb0ac975980d66347d5a8.tar.gz linux-0d4cbc5e83baccd73ebcb0ac975980d66347d5a8.zip | |
kprobes: use DEFINE_DEBUGFS_ATTRIBUTE for the enabled knob
This enabled knob is a disgusting terrible hack. It has rolled its
own read/write pair since 2007, writing '1' or '0' into a three byte
buffer by hand just to print a single character, with an XXX comment
begging debugfs for write callbacks on bool files.
DEFINE_DEBUGFS_ATTRIBUTE showed up in 2016 and does exactly that, so
the disgusting terrible hack has outlived its excuse for nine years.
Kill it, and the stale comment with it.
The behavior does not change, except the write only accepts 0/1 now
instead of y/n/on/off, and nothing uses anything else.
Link: https://lore.kernel.org/all/20260818015318.24103-1-include@grrlz.net/
Signed-off-by: Bradley Morgan <include@grrlz.net>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
