]> git.baikalelectronics.ru Git - kernel.git/commit
tracepoints: Remove unnecessary "data_args" macro parameter
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 8 Feb 2021 20:09:23 +0000 (15:09 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 9 Feb 2021 17:16:27 +0000 (12:16 -0500)
commit1746fd4416ed5510fe9fdd6a93e49a436187b680
treecb66a9706159b803ff6136eaea796998ac277803
parent2d396cb3b12641adcde91104a7c89994f2e876a6
tracepoints: Remove unnecessary "data_args" macro parameter

While working on a clean up that would restructure the difference between
architectures that have static calls vs those that do not, I was stumbling
over the "data_args" parameter that includes "__data" in the arguments. The
issue was that one version didn't even need it, while the other one did.
Instead of injecting a "__data = NULL;" into the macro for the unneeded
version, just remove it completely.

The original idea behind data_args is that there may be a case of a
tracepoint with no arguments. But this is considered bad practice, and all
tracepoints should pass something to that location (that's what tracepoints
were created for).

Link: https://lkml.kernel.org/r/20210208201050.768074128@goodmis.org
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/tracepoint.h