lkml.org 
[lkml]   [2020]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next RFC v4 04/15] devlink: Add reload actions stats to dev get
On Mon, Sep 14, 2020 at 03:45:00PM +0200, Jiri Pirko wrote:
> Mon, Sep 14, 2020 at 08:07:51AM CEST, moshe@mellanox.com wrote:
> >Expose devlink reload actions stats to the user through devlink dev
> >get command.
> >
> >Examples:
> >$ devlink dev show
> >pci/0000:82:00.0:
> > reload_action_stats:
> > driver_reinit 2
> > fw_activate 1
> > driver_reinit_no_reset 0
> > fw_activate_no_reset 0
> >pci/0000:82:00.1:
> > reload_action_stats:
> > driver_reinit 1
> > fw_activate 1
> > driver_reinit_no_reset 0
> > fw_activate_no_reset 0
>
> I would rather have something like:
> stats:
> reload_action:
> driver_reinit 1
> fw_activate 1
> driver_reinit_no_reset 0
> fw_activate_no_reset 0
>
> Then we can easily extend and add other stats in the tree.
>
>
> Also, I wonder if these stats could be somehow merged with Ido's metrics
> work:
> https://github.com/idosch/linux/commits/submit/devlink_metric_rfc_v1
>
> Ido, would it make sense?

I guess. My original idea for devlink-metric was to expose
design-specific metrics to user space where the entity registering the
metrics is the device driver. In this case the entity would be devlink
itself and it would be auto-registered for each device.

>
>
> >
> >$ devlink dev show -jp
> >{
> > "dev": {
> > "pci/0000:82:00.0": {
> > "reload_action_stats": [ {
> > "driver_reinit": 2
> > },{
> > "fw_activate": 1
> > },{
> > "driver_reinit_no_reset": 0
> > },{
> > "fw_activate_no_reset": 0
> > } ]
> > },
> > "pci/0000:82:00.1": {
> > "reload_action_stats": [ {
> > "driver_reinit": 1
> > },{
> > "fw_activate": 1
> > },{
> > "driver_reinit_no_reset": 0
> > },{
> > "fw_activate_no_reset": 0
> > } ]
> > }
> > }
> >}
> >
>
> [..]

\
 
 \ /
  Last update: 2020-09-15 08:46    [W:0.070 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site