Messages in this thread | | | Date | Mon, 10 Apr 2023 09:11:43 +0900 | From | Masami Hiramatsu (Google) <> | Subject | Re: [PATCH v4 2/3] tracing/probes: Add fprobe events for tracing function entry and exit. |
| |
On Sat, 1 Apr 2023 23:34:17 +0900 "Masami Hiramatsu (Google)" <mhiramat@kernel.org> wrote:
> index 000000000000..e9e071af243d > --- /dev/null > +++ b/kernel/trace/trace_fprobe.c > @@ -0,0 +1,1073 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Fprobe-based tracing events > + * Copyright (C) 2022 Google LLC. > + */ > +#define pr_fmt(fmt) "trace_fprobe: " fmt > + > +#include <linux/security.h> > +#include <linux/fprobe.h> > +#include <linux/module.h> > +#include <linux/uaccess.h> > +#include <linux/rculist.h> > + > +#include "trace_dynevent.h" > +#include "trace_probe.h" > +#include "trace_probe_kernel.h" > +#include "trace_probe_tmpl.h" > + > +#define FPROBE_EVENT_SYSTEM "fprobes" > +#define RETHOOK_MAXACTIVE_MAX 4096 > + > +static int trace_fprobe_create(const char *raw_command); > +static int trace_fprobe_show(struct seq_file *m, struct dyn_event *ev); > +static int trace_fprobe_release(struct dyn_event *ev); > +static bool trace_fprobe_is_busy(struct dyn_event *ev); > +static bool trace_fprobe_match(const char *system, const char *event, > + int argc, const char **argv, struct dyn_event *ev); > + > +static struct dyn_event_operations trace_fprobe_ops = { > + .create = trace_fprobe_create, > + .show = trace_fprobe_show, > + .is_busy = trace_fprobe_is_busy, > + .free = trace_fprobe_release, > + .match = trace_fprobe_match, > +}; > + > +/* > + * Kprobe event core functions
Oops, I forgot to update this comment. Let me update it.
Thanks,
-- Masami Hiramatsu (Google) <mhiramat@kernel.org>
| |