On 7/11/16 7:18 AM, Jiri Pirko wrote:
diff --git a/net/core/devlink.c b/net/core/devlink.c index b2e592a..8cfa3b0 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -26,6 +26,8 @@ #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(trace_devlink_hwmsg);
static LIST_HEAD(devlink_list); @@ -1679,6 +1681,13 @@ void devlink_free(struct devlink *devlink) } EXPORT_SYMBOL_GPL(devlink_free); +void devlink_trace_hwmsg(const struct devlink *devlink, bool incoming, + unsigned long type, const u8 *buf, size_t len) +{ + trace_devlink_hwmsg(devlink, incoming, type, buf, len); +} +EXPORT_SYMBOL_GPL(devlink_trace_hwmsg);
Then you don't need this devlink function.