diff options
author | Jiri Pirko <jiri@mellanox.com> | 2016-07-12 18:05:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-12 14:20:18 -0700 |
commit | e5224f0fe2acddbc2fa9b419d8867ced7f5381fc (patch) | |
tree | 246d2e1b757978a0e507b5198ec1bb60c016c3a4 /net/core/devlink.c | |
parent | 85c22bad56ec0d0d8d8518414f97106233132e43 (diff) |
devlink: add hardware messages tracing facility
Define a tracepoint and allow user to trace messages going to and from
hardware associated with devlink instance.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r-- | net/core/devlink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index b2e592a198c0..1b5063088f1a 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -26,6 +26,10 @@ #include <net/net_namespace.h> #include <net/sock.h> #include <net/devlink.h> +#define CREATE_TRACE_POINTS +#include <trace/events/devlink.h> + +EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwmsg); static LIST_HEAD(devlink_list); |