Skip to content

Commit 0199907

Browse files
Wei Yongjunakpm00
authored andcommitted
fault-injection: make some stack filter attrs more readable
Attributes of stack filter are show as unsigned decimal, such as 'require-start', 'require-end'. This patch change to show them as unsigned hexadecimal for more readable. Before: $ echo 0xffffffffc0257000 > /sys/kernel/debug/failslab/require-start $ cat /sys/kernel/debug/failslab/require-start 18446744072638263296 After: $ echo 0xffffffffc0257000 > /sys/kernel/debug/failslab/require-start $ cat /sys/kernel/debug/failslab/require-start 0xffffffffc0257000 [[email protected]: use debugfs_create_xul() instead of debugfs_create_xl()] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Wang Yufen <[email protected]> Reviewed-by: Akinobu Mita <[email protected]> Cc: Dan Williams <[email protected]> Cc: Isabella Basso <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Kees Cook <[email protected]> Cc: Miguel Ojeda <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 4acb9e5 commit 0199907

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/fault-inject.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ struct dentry *fault_create_debugfs_attr(const char *name,
226226
#ifdef CONFIG_FAULT_INJECTION_STACKTRACE_FILTER
227227
debugfs_create_stacktrace_depth("stacktrace-depth", mode, dir,
228228
&attr->stacktrace_depth);
229-
debugfs_create_ul("require-start", mode, dir, &attr->require_start);
230-
debugfs_create_ul("require-end", mode, dir, &attr->require_end);
231-
debugfs_create_ul("reject-start", mode, dir, &attr->reject_start);
232-
debugfs_create_ul("reject-end", mode, dir, &attr->reject_end);
229+
debugfs_create_xul("require-start", mode, dir, &attr->require_start);
230+
debugfs_create_xul("require-end", mode, dir, &attr->require_end);
231+
debugfs_create_xul("reject-start", mode, dir, &attr->reject_start);
232+
debugfs_create_xul("reject-end", mode, dir, &attr->reject_end);
233233
#endif /* CONFIG_FAULT_INJECTION_STACKTRACE_FILTER */
234234

235235
attr->dname = dget(dir);

0 commit comments

Comments
 (0)