aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/trace.h')
-rw-r--r--net/mac80211/trace.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h
index 591ad02e1fa4..80a7edf8d314 100644
--- a/net/mac80211/trace.h
+++ b/net/mac80211/trace.h
@@ -2,6 +2,7 @@
2/* 2/*
3* Portions of this file 3* Portions of this file
4* Copyright(c) 2016 Intel Deutschland GmbH 4* Copyright(c) 2016 Intel Deutschland GmbH
5* Copyright (C) 2018 Intel Corporation
5*/ 6*/
6 7
7#if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) 8#if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ)
@@ -1413,11 +1414,29 @@ DEFINE_EVENT(release_evt, drv_allow_buffered_frames,
1413 TP_ARGS(local, sta, tids, num_frames, reason, more_data) 1414 TP_ARGS(local, sta, tids, num_frames, reason, more_data)
1414); 1415);
1415 1416
1416DEFINE_EVENT(local_sdata_evt, drv_mgd_prepare_tx, 1417TRACE_EVENT(drv_mgd_prepare_tx,
1417 TP_PROTO(struct ieee80211_local *local, 1418 TP_PROTO(struct ieee80211_local *local,
1418 struct ieee80211_sub_if_data *sdata), 1419 struct ieee80211_sub_if_data *sdata,
1420 u16 duration),
1419 1421
1420 TP_ARGS(local, sdata) 1422 TP_ARGS(local, sdata, duration),
1423
1424 TP_STRUCT__entry(
1425 LOCAL_ENTRY
1426 VIF_ENTRY
1427 __field(u32, duration)
1428 ),
1429
1430 TP_fast_assign(
1431 LOCAL_ASSIGN;
1432 VIF_ASSIGN;
1433 __entry->duration = duration;
1434 ),
1435
1436 TP_printk(
1437 LOCAL_PR_FMT VIF_PR_FMT " duration: %u",
1438 LOCAL_PR_ARG, VIF_PR_ARG, __entry->duration
1439 )
1421); 1440);
1422 1441
1423DEFINE_EVENT(local_sdata_evt, drv_mgd_protect_tdls_discover, 1442DEFINE_EVENT(local_sdata_evt, drv_mgd_protect_tdls_discover,