]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: probeevent: Fix to make the type of $comm string
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 7 May 2019 13:56:02 +0000 (22:56 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 8 May 2019 16:15:11 +0000 (12:15 -0400)
commite47dc85cdb4884d4e6a77f078ccb3661e2b5a2fc
tree52f84e3e554bd5259c4c12477aa528658b365c97
parent19de74f060f98e4bb161a0da23c45f1a98f495b0
tracing: probeevent: Fix to make the type of $comm string

Fix to make the type of $comm "string".  If we set the other type to $comm
argument, it shows meaningless value or wrong data. Currently probe events
allow us to set string array type (e.g. ":string[2]"), or other digit types
like x8 on $comm. But since clearly $comm is just a string data, it should
not be fetched by other types including array.

Link: http://lkml.kernel.org/r/155723736241.9149.14582064184468574539.stgit@devnote2
Cc: Andreas Ziegler <andreas.ziegler@fau.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 48320f6d1ed9 ("tracing: probeevent: Introduce new argument fetching code")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_probe.c