Skip to content

Commit 6dad28a

Browse files
egrumbachjmberg-intel
authored andcommitted
mac80211: add the action to the drv_ampdu_action tracepoint
It is very useful to know what ampdu action is currently happening. Add this information to the tracepoint. Signed-off-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
1 parent ea304a9 commit 6dad28a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

net/mac80211/trace.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,19 @@
9292
__field(u16, ssn) \
9393
__field(u8, buf_size) \
9494
__field(bool, amsdu) \
95-
__field(u16, timeout)
95+
__field(u16, timeout) \
96+
__field(u16, action)
9697
#define AMPDU_ACTION_ASSIGN STA_NAMED_ASSIGN(params->sta); \
9798
__entry->tid = params->tid; \
9899
__entry->ssn = params->ssn; \
99100
__entry->buf_size = params->buf_size; \
100101
__entry->amsdu = params->amsdu; \
101-
__entry->timeout = params->timeout;
102-
#define AMPDU_ACTION_PR_FMT STA_PR_FMT " tid %d, ssn %d, buf_size %u, amsdu %d, timeout %d"
102+
__entry->timeout = params->timeout; \
103+
__entry->action = params->action;
104+
#define AMPDU_ACTION_PR_FMT STA_PR_FMT " tid %d, ssn %d, buf_size %u, amsdu %d, timeout %d action %d"
103105
#define AMPDU_ACTION_PR_ARG STA_PR_ARG, __entry->tid, __entry->ssn, \
104-
__entry->buf_size, __entry->amsdu, __entry->timeout
106+
__entry->buf_size, __entry->amsdu, __entry->timeout, \
107+
__entry->action
105108

106109
/*
107110
* Tracing for driver callbacks.

0 commit comments

Comments
 (0)