projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aa47ca
)
devlink: use tracepoint_enabled() helper
author
Jiri Pirko
<jiri@nvidia.com>
Mon, 28 Aug 2023 06:16:51 +0000
(08:16 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Mon, 28 Aug 2023 15:02:23 +0000
(08:02 -0700)
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>
net/devlink/leftover.c
patch
|
blob
|
history
diff --git
a/net/devlink/leftover.c
b/net/devlink/leftover.c
index
6d31aae
..
1db3a79
100644
(file)
--- 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 (trace
point_enabled(devlink_trap_report
)) {
struct devlink_trap_metadata metadata = {};
devlink_trap_report_metadata_set(&metadata, trap_item,