diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2019-02-07 11:36:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-07 10:34:28 -0800 |
commit | a0bdcc59d194d9d2ccb679015e66d8562b0b9e84 (patch) | |
tree | cda1b58d7d1b291b8152940962bcf8c589958256 /include/trace | |
parent | 1db64e8733f653814f041ffe1428524494ef6123 (diff) | |
download | linux-a0bdcc59d194d9d2ccb679015e66d8562b0b9e84.tar.bz2 |
devlink: Add health reporter create/destroy functionality
Devlink health reporter is an instance for reporting, diagnosing and
recovering from run time errors discovered by the reporters.
Define it's data structure and supported operations.
In addition, expose devlink API to create and destroy a reporter.
Each devlink instance will hold it's own reporters list.
As part of the allocation, driver shall provide a set of callbacks which
will be used by devlink in order to handle health reports and user
commands related to this reporter. In addition, driver is entitled to
provide some priv pointer, which can be fetched from the reporter by
devlink_health_reporter_priv function.
For each reporter, devlink will hold a metadata of statistics,
dump msg and status.
For passing dumps and diagnose data to the user-space, it will use devlink
fmsg API.
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions