diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-08-28 08:16:55 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-28 08:02:23 -0700 |
commit | 890c556674377c0abba4ab91ff6f1962175d578c (patch) | |
tree | 7ee33dbe0cfcccdc27ad9458c8e47e9756d583a9 /net/devlink/core.c | |
parent | 9edbe6f36c5f86776cc1c6ba0f546a4aefe2767f (diff) | |
download | lwn-890c556674377c0abba4ab91ff6f1962175d578c.tar.gz lwn-890c556674377c0abba4ab91ff6f1962175d578c.zip |
devlink: move tracepoint definitions into core.c
Move remaining tracepoint definitions to most suitable file core.c.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230828061657.300667-14-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/devlink/core.c')
-rw-r--r-- | net/devlink/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/devlink/core.c b/net/devlink/core.c index c23ebabadc52..6cec4afb01fb 100644 --- a/net/devlink/core.c +++ b/net/devlink/core.c @@ -5,9 +5,15 @@ */ #include <net/genetlink.h> +#define CREATE_TRACE_POINTS +#include <trace/events/devlink.h> #include "devl_internal.h" +EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwmsg); +EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwerr); +EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_trap_report); + DEFINE_XARRAY_FLAGS(devlinks, XA_FLAGS_ALLOC); void *devlink_priv(struct devlink *devlink) |