From: Steven Rostedt <rostedt@goodmis.org>
To: Metin Kaya <metin.kaya@arm.com>
Cc: linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH v2 0/4] trace-cmd reset: Add option to preserve specific events
Date: Tue, 15 Oct 2024 12:31:31 -0400 [thread overview]
Message-ID: <20241015123131.1f6872d9@gandalf.local.home> (raw)
In-Reply-To: <d46e317c-075a-4c08-a6c8-db236130c35a@arm.com>
On Tue, 15 Oct 2024 14:30:58 +0100
Metin Kaya <metin.kaya@arm.com> wrote:
> On 14/10/2024 10:59 pm, Steven Rostedt wrote:
> > On Mon, 14 Oct 2024 13:31:32 +0100
> > Metin Kaya <metin.kaya@arm.com> wrote:
> >
> >> Changes since v1:
> >> - Update man page for -k command line parameter of "trace-cmd reset".
> >> - Add tab completion support for "trace-cmd reset".
> >
> > Thanks, I'll go ahead and apply this. But can you do me a favor, and add a
> > test case to utest/tracecmd-utest.c that tests this. It should create a
> > each of the types, start tracing, do the reset, and make sure that the -k
> > keeps what is expected. Doesn't need to be too fancy.
>
> I wrote the patch below, but noticed I'm unable to preserve uprobes
> during reset. I verified trace-cmd tries to prevent
> TRACEFS_DYNEVENT_UPROBE from being destroyed, but I cannot see them
> after running "trace-cmd reset -k uprobe" command.
> The same problem exists for uretprobe, too.
> I confirmed utest uses correct trace-cmd executable.
>
> Any ideas?
Ug, that's because uprobes are defined in dynamic_events with a "p:", just
like kprobes. :-p And the tracefs dynamic event parser flags uprobes as
kprobes. Thus, if we are deleting kprobes, we will delete uprobes too.
I need to fix that. We can't change the kernel as it's ABI unfortunately,
but there's other ways libtracefs can differentiate the two.
-- Steve
prev parent reply other threads:[~2024-10-15 16:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 12:31 [PATCH v2 0/4] trace-cmd reset: Add option to preserve specific events Metin Kaya
2024-10-14 12:31 ` [PATCH v2 1/4] trace-cmd reset: Bail out immediately if user provides an invalid option Metin Kaya
2024-10-14 12:31 ` [PATCH v2 2/4] trace-cmd reset: Add option to preserve specific dynamic events Metin Kaya
2024-10-14 12:31 ` [PATCH v2 3/4] trace-cmd reset: Update man page for -k option Metin Kaya
2024-10-14 12:31 ` [PATCH v2 4/4] trace-cmd reset: Add bash tab completion for -B and -k Metin Kaya
2024-10-14 21:59 ` [PATCH v2 0/4] trace-cmd reset: Add option to preserve specific events Steven Rostedt
2024-10-15 13:30 ` Metin Kaya
2024-10-15 13:47 ` Steven Rostedt
2024-10-15 16:31 ` Steven Rostedt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241015123131.1f6872d9@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
--cc=metin.kaya@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).