mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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>
This commit is contained in:
parent
1aa47ca1f5
commit
85facf94fd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user