From: Jiri Pirko <jiri@resnulli.us>
To: sundeep subbaraya <sundeep.lkml@gmail.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
Sunil Kovvuri Goutham <sgoutham@marvell.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Subbaraya Sundeep Bhatta <sbhatta@marvell.com>
Subject: Re: [EXT] Re: [net-next PATCH 0/2] Introduce mbox tracepoints for Octeontx2
Date: Wed, 16 Sep 2020 12:34:30 +0200 [thread overview]
Message-ID: <20200916103430.GA2298@nanopsycho.orion> (raw)
In-Reply-To: <CALHRZuoa8crCaOAkEqyBq1DnmVqUgpv_jzQboMNZcU_3R4RGvg@mail.gmail.com>
Mon, Sep 07, 2020 at 12:59:45PM CEST, sundeep.lkml@gmail.com wrote:
>Hi Jakub,
>
>On Sat, Sep 5, 2020 at 2:07 AM Jakub Kicinski <kuba@kernel.org> wrote:
>>
>> On Fri, 4 Sep 2020 12:29:04 +0000 Sunil Kovvuri Goutham wrote:
>> > > >No, there are 3 drivers registering to 3 PCI device IDs and there can
>> > > >be many instances of the same devices. So there can be 10's of instances of
>> > > AF, PF and VFs.
>> > >
>> > > So you can still have per-pci device devlink instance and use the tracepoint
>> > > Jakub suggested.
>> > >
>> >
>> > Two things
>> > - As I mentioned above, there is a Crypto driver which uses the same mbox APIs
>> > which is in the process of upstreaming. There also we would need trace points.
>> > Not sure registering to devlink just for the sake of tracepoint is proper.
>> >
>> > - The devlink trace message is like this
>> >
>> > TRACE_EVENT(devlink_hwmsg,
>> > . . .
>> > TP_printk("bus_name=%s dev_name=%s driver_name=%s incoming=%d type=%lu buf=0x[%*phD] len=%zu",
>> > __get_str(bus_name), __get_str(dev_name),
>> > __get_str(driver_name), __entry->incoming, __entry->type,
>> > (int) __entry->len, __get_dynamic_array(buf), __entry->len)
>> > );
>> >
>> > Whatever debug message we want as output doesn't fit into this.
>>
>> Make use of the standard devlink tracepoint wherever applicable, and you
>> can keep your extra ones if you want (as long as Jiri don't object).
>
>Sure and noted. I have tried to use devlink tracepoints and since it
>could not fit our purpose I used these.
Why exactly the existing TP didn't fit your need?
>
>Thanks,
>Sundeep
next prev parent reply other threads:[~2020-09-16 11:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-03 7:18 [net-next PATCH 0/2] Introduce mbox tracepoints for Octeontx2 sundeep.lkml
2020-09-03 7:18 ` [net-next PATCH 1/2] octeontx2-af: Introduce tracepoints for mailbox sundeep.lkml
2020-09-03 7:18 ` [net-next PATCH 2/2] octeontx2-pf: Add tracepoints for PF/VF mailbox sundeep.lkml
2020-09-03 19:18 ` [net-next PATCH 0/2] Introduce mbox tracepoints for Octeontx2 Jakub Kicinski
2020-09-04 5:39 ` [EXT] " Sunil Kovvuri Goutham
2020-09-04 8:37 ` Jiri Pirko
2020-09-04 8:49 ` Sunil Kovvuri Goutham
2020-09-04 12:11 ` Jiri Pirko
2020-09-04 12:29 ` Sunil Kovvuri Goutham
2020-09-04 20:37 ` Jakub Kicinski
2020-09-07 10:59 ` sundeep subbaraya
2020-09-15 15:52 ` sundeep subbaraya
2020-09-15 16:12 ` Jakub Kicinski
2020-09-15 16:36 ` sundeep subbaraya
2020-09-15 16:44 ` Jakub Kicinski
2020-09-16 10:34 ` Jiri Pirko [this message]
2020-09-16 17:19 ` sundeep subbaraya
2020-09-17 6:04 ` Jiri Pirko
2020-09-17 10:30 ` sundeep subbaraya
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=20200916103430.GA2298@nanopsycho.orion \
--to=jiri@resnulli.us \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
--cc=sundeep.lkml@gmail.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).