]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Have the historgram use the result of str_has_prefix() for len of prefix
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 21 Dec 2018 23:40:46 +0000 (18:40 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 23 Dec 2018 03:52:09 +0000 (22:52 -0500)
commit94a2453fe9d9bef5740032a2fb9c4ad9e01a8253
treefd0b860445d7aff7d0ed6a601a78b7ec2e6699c1
parent669951268b1b2b8d978f29996e7a1dc55adbd06d
tracing: Have the historgram use the result of str_has_prefix() for len of prefix

As str_has_prefix() returns the length on match, we can use that for the
updating of the string pointer instead of recalculating the prefix size.

Cc: Tom Zanussi <zanussi@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c