summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_eprobe.c
diff options
context:
space:
mode:
authorTom Zanussi <zanussi@kernel.org>2022-01-10 08:04:12 -0600
committerSteven Rostedt <rostedt@goodmis.org>2022-01-10 11:09:10 -0500
commitfb339e531bfccbd12d49b165f37636e62778b69f (patch)
tree29fe3379239cc36bd10b883625f1aa172602635d /kernel/trace/trace_eprobe.c
parent9ec5a7d16899ed9062cc4c3dd3a13e1771411ab3 (diff)
downloadlinux-fb339e531bfccbd12d49b165f37636e62778b69f.tar.gz
linux-fb339e531bfccbd12d49b165f37636e62778b69f.tar.bz2
linux-fb339e531bfccbd12d49b165f37636e62778b69f.zip
tracing: Change event_trigger_ops func() to trigger()
The name of the func() callback on event_trigger_ops is too generic and is easily confused with other callbacks with that name, so change it to something that reflects its actual purpose. In this case, the main purpose of the callback is to implement an event trigger, so call it trigger() instead. Also add some more documentation to event_trigger_ops describing the callbacks a bit better. Link: https://lkml.kernel.org/r/36ab812e3ee74ee03ae0043fda41a858ee728c00.1641823001.git.zanussi@kernel.org Signed-off-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_eprobe.c')
-rw-r--r--kernel/trace/trace_eprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_eprobe.c b/kernel/trace/trace_eprobe.c
index 84d5bfa34a99..6d363fd8a1e4 100644
--- a/kernel/trace/trace_eprobe.c
+++ b/kernel/trace/trace_eprobe.c
@@ -543,7 +543,7 @@ static void eprobe_trigger_func(struct event_trigger_data *data,
}
static struct event_trigger_ops eprobe_trigger_ops = {
- .func = eprobe_trigger_func,
+ .trigger = eprobe_trigger_func,
.print = eprobe_trigger_print,
.init = eprobe_trigger_init,
.free = eprobe_trigger_free,