From: John Fastabend <john.fastabend@gmail.com>
To: Jiri Pirko <jiri@resnulli.us>
Cc: Andrew Lunn <andrew@lunn.ch>,
"Rosen, Rami" <rami.rosen@intel.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"eladr@mellanox.com" <eladr@mellanox.com>,
"idosch@mellanox.com" <idosch@mellanox.com>
Subject: Re: HW communication debugging interface - ideas?
Date: Tue, 06 Oct 2015 07:54:09 -0700 [thread overview]
Message-ID: <5613E091.6000001@gmail.com> (raw)
In-Reply-To: <20151006081457.GD2165@nanopsycho.orion>
On 15-10-06 01:14 AM, Jiri Pirko wrote:
> Mon, Oct 05, 2015 at 05:47:09PM CEST, john.fastabend@gmail.com wrote:
>> On 15-10-05 08:35 AM, Jiri Pirko wrote:
>>> Mon, Oct 05, 2015 at 05:29:09PM CEST, john.fastabend@gmail.com wrote:
>>>> On 15-10-05 08:18 AM, Jiri Pirko wrote:
>>>>> Mon, Oct 05, 2015 at 04:58:42PM CEST, andrew@lunn.ch wrote:
>>>>>> On Mon, Oct 05, 2015 at 04:55:42PM +0200, Jiri Pirko wrote:
>>>>>>> Mon, Oct 05, 2015 at 04:49:41PM CEST, andrew@lunn.ch wrote:
>>>>>>>>>> Are you referring here to messages of the EMAD protocol ?
>>>>>>>>
>>>>>>>> I know nothing about this protocol.....
>>>>>>>>
>>>>>>>> Does it at least use standard Ethernet framing? Source and Destination
>>>>>>>> header and an EtherType which mean EMAD?
>>>>>>>
>>>>>>> Yep, but that does not really matter. I believe we should find debugging
>>>>>>> interface which is protocol agnostic. Just arbitrary messages
>>>>>>> monitoring.
>>>>>>
>>>>>> Hi Jiri
>>>>>>
>>>>>> O.K, it is just that you mentioned wireshark. Passing the frames to
>>>>>> network interface taps would make this trivial.
>>>>>
>>>>> That is true. But using netlink+nlmon would do the same.
>>>>
>>>> Also I guess if you go this direction you want to make it generic
>>>> enough for any drivers to use it to snoop software/firmware msgs. This
>>>> is common across many devices.
>>>
>>> Yes, definitelly, this should be something generic to be usable for
>>> every device type.
>>>
>>>
>>>>
>>>> In the past though I've just used ethtool dump commands and some
>>>> "scripts" on top of this to debug devices. And when it got really
>>>> bad wrote some throw away code to debug my issue. I guess it might
>>>> be nice to have something in the kernel to improve this but have
>>>> you considered using the tracing features that already exist?
>>>
>>> Which ones do you have in mind?
>>>
>>
>> I was thinking something like kprobes+bpf to dump a trace and
>> then a lua script in wireshark to parse the input and pretty
>> print it for users. This might get you good-enough support without
>> having to carry it around in the kernel just so we can debug
>> the devices. We could build some libs/pkgs around it in userspace
>> and get it published somewhere so we can all work on it together.
>
> Well, I was thinking rather about some standard interface, not dependent
> on actual kernel internals.
>
Sure just throwing out an idea. I suspect whatever interface you have
will include the vendor-id or some other identifier and a set of
parsers in user space to pretty print the msg.
.John
next prev parent reply other threads:[~2015-10-06 14:54 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 13:51 HW communication debugging interface - ideas? Jiri Pirko
2015-10-05 8:54 ` Jiri Pirko
2015-10-05 9:38 ` David Miller
2015-10-05 9:45 ` Jiri Pirko
2015-10-05 9:54 ` Rosen, Rami
2015-10-05 9:56 ` Jiri Pirko
2015-10-05 14:49 ` Andrew Lunn
2015-10-05 14:55 ` Jiri Pirko
2015-10-05 14:58 ` Andrew Lunn
2015-10-05 15:18 ` Jiri Pirko
2015-10-05 15:29 ` John Fastabend
2015-10-05 15:35 ` Jiri Pirko
2015-10-05 15:47 ` John Fastabend
2015-10-06 8:14 ` Jiri Pirko
2015-10-06 14:54 ` John Fastabend [this message]
2015-10-06 15:02 ` Jiri Pirko
2015-10-06 15:02 ` Andrew Lunn
2015-11-01 17:58 ` Guy Harris
2015-10-05 12:28 ` Thomas Graf
2015-10-05 18:32 ` Marcelo Ricardo Leitner
2015-10-05 20:40 ` Jiri Pirko
2015-11-01 16:51 ` David Miller
2015-11-02 6:13 ` Jiri Pirko
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=5613E091.6000001@gmail.com \
--to=john.fastabend@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=eladr@mellanox.com \
--cc=idosch@mellanox.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=rami.rosen@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.