tracing: Simplify defining of the next event id
authorWei Yang <richard.weiyang@linux.alibaba.com>
Fri, 3 Jul 2020 02:06:09 +0000 (10:06 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 9 Jul 2020 22:00:47 +0000 (18:00 -0400)
commit746cf3459f118592a72ef42e7551777ff17b1684
tree727cd7429ea337d8692063cea0f1b2dca7f8212a
parent29ce24519c0692ca7d998d7444a9e016a4c44fa7
tracing: Simplify defining of the next event id

The value to be used and compared in trace_search_list() is "last + 1".
Let's just define next to be "last + 1" instead of doing the addition
each time.

Link: https://lkml.kernel.org/r/20200703020612.12930-2-richard.weiyang@linux.alibaba.com
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_output.c