diff options
author | Sahara <keun-o.park@windriver.com> | 2013-04-15 11:13:15 +0900 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-04-19 19:59:49 -0400 |
commit | 4c69e6ea415a35eb7f0fc8ee9390c8f7436492a2 (patch) | |
tree | 586b87d0779390d498ce45df375b97decacfb059 /kernel/trace/ring_buffer.c | |
parent | d2802d0739dcc61af5e5ea00773ce7ddead4e9c2 (diff) | |
download | op-kernel-dev-4c69e6ea415a35eb7f0fc8ee9390c8f7436492a2.zip op-kernel-dev-4c69e6ea415a35eb7f0fc8ee9390c8f7436492a2.tar.gz |
tracepoints: Prevent null probe from being added
Somehow tracepoint_entry_add_probe() function allows a null probe function.
And, this may lead to unexpected results since the number of probe
functions in an entry can be counted by checking whether a probe is null
or not in the for-loop.
This patch prevents a null probe from being added.
In tracepoint_entry_remove_probe() function, checking probe parameter
within the for-loop is moved out for code efficiency, leaving the null probe
feature which removes all probe functions in the entry.
Link: http://lkml.kernel.org/r/1365991995-19445-1-git-send-email-kpark3469@gmail.com
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Sahara <keun-o.park@windriver.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions