diff options
| author | Donggeun Yoo <donggeunyoo.kernel@gmail.com> | 2026-09-14 14:34:40 +0900 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-10-15 18:40:28 -0400 |
| commit | 387945e8d2f29fa8a28d219af5416e6d3bedc314 (patch) | |
| tree | d084f89b71a2cf679b06a2f1809c80c45872e152 /scripts/Makefile.thinlto | |
| parent | c28bf729dd9c73408fca2645b75c3fda187b11a3 (diff) | |
| download | linux-next-387945e8d2f29fa8a28d219af5416e6d3bedc314.tar.gz linux-next-387945e8d2f29fa8a28d219af5416e6d3bedc314.zip | |
tracing: Print the bucket size as unsigned
A key's bucket size reads back negative once it exceeds LONG_MAX:
# echo 'hist:keys=next_pid.buckets=18446744073709551615' > trigger
# cat trigger
hist:keys=next_pid.buckets=-1:vals=hitcount:...
parse_field() takes the size with kstrtoul() and rejects only zero, so the
whole unsigned long range is accepted and stored, but hist_field_print()
renders it with %ld.
Print it with %lu.
Link: https://patch.msgid.link/20260914053443.981201-2-donggeunyoo.kernel@gmail.com
Fixes: de9a48a360b7 ("tracing: Add linear buckets to histogram logic")
Signed-off-by: Donggeun Yoo <donggeunyoo.kernel@gmail.com>
Assisted-by: Claude:claude-fable-5
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
