]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/wireless/trace.h
cfg80211: introduce critical protocol indication from user-space
[mirror_ubuntu-zesty-kernel.git] / net / wireless / trace.h
index 3c2033b8f596675b69db5efeba07f6cae03dca0d..ecd4fcec3c94be2305b38385ab58e732c4f339a0 100644 (file)
@@ -1806,6 +1806,41 @@ TRACE_EVENT(rdev_update_ft_ies,
                  WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md)
 );
 
+TRACE_EVENT(rdev_crit_proto_start,
+       TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev,
+                enum nl80211_crit_proto_id protocol, u16 duration),
+       TP_ARGS(wiphy, wdev, protocol, duration),
+       TP_STRUCT__entry(
+               WIPHY_ENTRY
+               WDEV_ENTRY
+               __field(u16, proto)
+               __field(u16, duration)
+       ),
+       TP_fast_assign(
+               WIPHY_ASSIGN;
+               WDEV_ASSIGN;
+               __entry->proto = protocol;
+               __entry->duration = duration;
+       ),
+       TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT ", proto=%x, duration=%u",
+                 WIPHY_PR_ARG, WDEV_PR_ARG, __entry->proto, __entry->duration)
+);
+
+TRACE_EVENT(rdev_crit_proto_stop,
+       TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev),
+       TP_ARGS(wiphy, wdev),
+       TP_STRUCT__entry(
+               WIPHY_ENTRY
+               WDEV_ENTRY
+       ),
+       TP_fast_assign(
+               WIPHY_ASSIGN;
+               WDEV_ASSIGN;
+       ),
+       TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT,
+                 WIPHY_PR_ARG, WDEV_PR_ARG)
+);
+
 /*************************************************************
  *          cfg80211 exported functions traces              *
  *************************************************************/