OSDN Git Service

tracing: Allow multiple hitcount values in histograms
authorTom Zanussi <zanussi@kernel.org>
Wed, 19 Oct 2022 15:31:55 +0000 (00:31 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 10 Dec 2022 04:48:04 +0000 (23:48 -0500)
commit5f2e094ed2592abb3d1f49e263957188e121c2ac
treeb08ba2d9493a39c3c51e98d569c357a6c1d2eef0
parentfd3dc56253acbe9c641a66d312d8393cd55eb04c
tracing: Allow multiple hitcount values in histograms

The hitcount is treated specially in the histograms - since it's
always expected to be there regardless of whether the user specified
anything or not, it's always added as the first histogram value.

Currently the code doesn't allow it to be added more than once as a
value, which is inconsistent with all the other possible values.  It
would seem to be a pointless thing to want to do, but other features
being added such as percent and graph modifiers don't work properly
with the current hitcount restrictions.

Fix this by allowing multiple hitcounts to be added.

Link: https://lore.kernel.org/linux-trace-kernel/166610812248.56030.16754785928712505251.stgit@devnote2
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Tested-by: Tom Zanussi <zanussi@kernel.org>
kernel/trace/trace_events_hist.c