From: "Geneviève Bastien" <gbastien@versatic.net>
To: David Miller <davem@davemloft.net>, mathieu.desnoyers@efficios.com
Cc: netdev@vger.kernel.org, rostedt@goodmis.org, mingo@redhat.com
Subject: Re: [PATCH v3] net: Add trace events for all receive exit points
Date: Mon, 19 Nov 2018 10:27:50 -0500 [thread overview]
Message-ID: <61fe529f-6f06-65fc-bc1c-043180e86cf9@versatic.net> (raw)
In-Reply-To: <20181117.221921.901866732366630755.davem@davemloft.net>
On 2018-11-18 1:19 a.m., David Miller wrote:
> From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
> Date: Sat, 17 Nov 2018 13:27:29 -0500 (EST)
>
>> I see two possible solutions:
>>
>> 1) Remove the "skb" argument from the sbk_exit tracepoints completely.
>> Anyway, I think it's not really needed for analysis purposes because
>> we can link the "entry" with the associated "exit" using the thread ID
>> executing those tracepoints. (Genevi�ve, would that work for your
>> analyses ?)
>>
>> 2) Move the skb_exit tracepoints before freeing the skb pointer. My
>> concern here is that the instrumentation may become much uglier than
>> the currently proposed patch. (I have not looked at the specifics
>> though, so I may be wrong.)
>>
>> Do you have a preference between those two approaches, or perhaps you
>> have an alternative solution in mind ?
> I wonder how other situations handle this.
>
> About #2, if you put the tracepoint beforehand you can't log the
> 'ret' value. So at least in that regard I prefer #1.
>
> If tracepoints generally handle this by matching up the thread
> ID, then definitely that's how we should do it here too instead
> of trying to use the SKB pointer for this purpose.
I would go for #1 too, the "skb" is not used to match entry/exit, it is more the context in which they appear (thread, softirq, etc). And I did indeed get seg faults on my first attempt when I tried to use the existing templates.
There's just the list tracepoint that would now log nothing, so there's no point looping through the list.
next prev parent reply other threads:[~2018-11-20 1:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-13 20:13 [PATCH v3] net: Add trace events for all receive exit points Geneviève Bastien
2018-11-17 3:50 ` David Miller
2018-11-17 18:27 ` Mathieu Desnoyers
2018-11-18 6:19 ` David Miller
2018-11-19 15:27 ` Geneviève Bastien [this message]
2018-11-19 17:47 ` Geneviève Bastien
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=61fe529f-6f06-65fc-bc1c-043180e86cf9@versatic.net \
--to=gbastien@versatic.net \
--cc=davem@davemloft.net \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=rostedt@goodmis.org \
/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).