summaryrefslogtreecommitdiff
path: root/net/devlink
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-08-28 08:16:51 +0200
committerJakub Kicinski <kuba@kernel.org>2023-08-28 08:02:23 -0700
commit85facf94fd804ef557d5d844b5253859adef10d5 (patch)
tree8d115bbe4c238704d3caf173dfa948a7ca9a415d /net/devlink
parent1aa47ca1f52ee4ef5f553e7ee8fb6749b6c96b9f (diff)
devlink: use tracepoint_enabled() helper
In preparation for the trap code move, use tracepoint_enabled() helper instead of trace_devlink_trap_report_enabled() which would not be defined in that scope. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230828061657.300667-10-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/devlink')
-rw-r--r--net/devlink/leftover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/devlink/leftover.c b/net/devlink/leftover.c
index 6d31aaee8ce8..1db3a7928465 100644
--- a/net/devlink/leftover.c
+++ b/net/devlink/leftover.c
@@ -3131,7 +3131,7 @@ void devlink_trap_report(struct devlink *devlink, struct sk_buff *skb,
devlink_trap_stats_update(trap_item->stats, skb->len);
devlink_trap_stats_update(trap_item->group_item->stats, skb->len);
- if (trace_devlink_trap_report_enabled()) {
+ if (tracepoint_enabled(devlink_trap_report)) {
struct devlink_trap_metadata metadata = {};
devlink_trap_report_metadata_set(&metadata, trap_item,