[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210615144223.c4720bfdaff21ecb4d1e9101@kernel.org>
Date: Tue, 15 Jun 2021 14:42:23 +0900
From: Masami Hiramatsu <mhiramat@...nel.org>
To: "Naveen N. Rao" <naveen.n.rao@...ux.vnet.ibm.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@...ux.ibm.com>,
linux-kernel@...r.kernel.org,
Peter Zijlstra <peterz@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH] kprobes: Print an error if probe is rejected
Hi Naveen,
On Mon, 14 Jun 2021 21:07:40 +0530
"Naveen N. Rao" <naveen.n.rao@...ux.vnet.ibm.com> wrote:
> >
> >> We also have perf_event_open() as an interface to add probes, and I
> >> don't think it would be helpful to require all tools to utilize the
> >> error log from tracefs for this purpose.
> >
> > No, perf probe doesn't use perf-event interface to add probes. It uses
> > the tracefs for adding probes.
>
> Yes, but I was referring to some of the bpf tools (bcc) that now use
> perf_event_open() interface.
Yes, bpf chooses to use a special temporary perf_event, something like a
performance counter event. Those are hidden from tracefs and perf-tool.
The perf probe is the frontend of the trace event and perf event, which
will add dynamic events in tracefs, and perf will use it as same as
the other static events.
Thank you,
--
Masami Hiramatsu <mhiramat@...nel.org>
Powered by blists - more mailing lists