Re: [PATCH net-next v2 03/11] devlink: Add health report functionality

2019-01-21 Thread Eran Ben Elisha
On 1/20/2019 1:27 PM, Jiri Pirko wrote: > Thu, Jan 17, 2019 at 10:59:12PM CET, era...@mellanox.com wrote: > > [...] > >> + >> +TRACE_EVENT(devlink_health_recover_aborted, >> +TP_PROTO(const struct devlink *devlink, const char *reporter_name, >> + bool health_state, u64 time_sinc

Re: [PATCH net-next v2 03/11] devlink: Add health report functionality

2019-01-20 Thread Jiri Pirko
Thu, Jan 17, 2019 at 10:59:12PM CET, era...@mellanox.com wrote: [...] >+ >+TRACE_EVENT(devlink_health_recover_aborted, >+ TP_PROTO(const struct devlink *devlink, const char *reporter_name, >+ bool health_state, u64 time_since_last_recover), >+ >+ TP_ARGS(devlink, reporter_

[PATCH net-next v2 03/11] devlink: Add health report functionality

2019-01-17 Thread Eran Ben Elisha
Upon error discover, every driver can report it to the devlink health mechanism via devlink_health_report function, using the appropriate reporter registered to it. Driver can pass error specific context which will be delivered to it as part of the dump / recovery callbacks. Once an error is repor