trace.h (81e54d08d9d845053111f30045a93f3eb1c3ca96) | trace.h (5207ca554bfcb5a32959eb12b6aff8f64384492c) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#undef TRACE_SYSTEM 3#define TRACE_SYSTEM cfg80211 4 5#if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ) 6#define __RDEV_OPS_TRACE 7 8#include <linux/tracepoint.h> --- 2354 unchanged lines hidden (view full) --- 2363 params->ssid.ssid_len); 2364 __entry->status = params->status; 2365 ), 2366 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 2367 ", ssid: %s, status: %u", WIPHY_PR_ARG, NETDEV_PR_ARG, 2368 __entry->bssid, __entry->ssid, __entry->status) 2369); 2370 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#undef TRACE_SYSTEM 3#define TRACE_SYSTEM cfg80211 4 5#if !defined(__RDEV_OPS_TRACE) || defined(TRACE_HEADER_MULTI_READ) 6#define __RDEV_OPS_TRACE 7 8#include <linux/tracepoint.h> --- 2354 unchanged lines hidden (view full) --- 2363 params->ssid.ssid_len); 2364 __entry->status = params->status; 2365 ), 2366 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", bssid: " MAC_PR_FMT 2367 ", ssid: %s, status: %u", WIPHY_PR_ARG, NETDEV_PR_ARG, 2368 __entry->bssid, __entry->ssid, __entry->status) 2369); 2370 |
2371TRACE_EVENT(rdev_start_radar_detection, 2372 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2373 struct cfg80211_chan_def *chandef, 2374 u32 cac_time_ms), 2375 TP_ARGS(wiphy, netdev, chandef, cac_time_ms), 2376 TP_STRUCT__entry( 2377 WIPHY_ENTRY 2378 NETDEV_ENTRY 2379 CHAN_DEF_ENTRY 2380 __field(u32, cac_time_ms) 2381 ), 2382 TP_fast_assign( 2383 WIPHY_ASSIGN; 2384 NETDEV_ASSIGN; 2385 CHAN_DEF_ASSIGN(chandef); 2386 __entry->cac_time_ms = cac_time_ms; 2387 ), 2388 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 2389 ", cac_time_ms=%u", 2390 WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 2391 __entry->cac_time_ms) 2392); 2393 2394TRACE_EVENT(rdev_set_mcast_rate, 2395 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2396 int *mcast_rate), 2397 TP_ARGS(wiphy, netdev, mcast_rate), 2398 TP_STRUCT__entry( 2399 WIPHY_ENTRY 2400 NETDEV_ENTRY 2401 __array(int, mcast_rate, NUM_NL80211_BANDS) 2402 ), 2403 TP_fast_assign( 2404 WIPHY_ASSIGN; 2405 NETDEV_ASSIGN; 2406 memcpy(__entry->mcast_rate, mcast_rate, 2407 sizeof(int) * NUM_NL80211_BANDS); 2408 ), 2409 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " 2410 "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 60GHz=0x%x]", 2411 WIPHY_PR_ARG, NETDEV_PR_ARG, 2412 __entry->mcast_rate[NL80211_BAND_2GHZ], 2413 __entry->mcast_rate[NL80211_BAND_5GHZ], 2414 __entry->mcast_rate[NL80211_BAND_60GHZ]) 2415); 2416 2417TRACE_EVENT(rdev_set_coalesce, 2418 TP_PROTO(struct wiphy *wiphy, struct cfg80211_coalesce *coalesce), 2419 TP_ARGS(wiphy, coalesce), 2420 TP_STRUCT__entry( 2421 WIPHY_ENTRY 2422 __field(int, n_rules) 2423 ), 2424 TP_fast_assign( 2425 WIPHY_ASSIGN; 2426 __entry->n_rules = coalesce ? coalesce->n_rules : 0; 2427 ), 2428 TP_printk(WIPHY_PR_FMT ", n_rules=%d", 2429 WIPHY_PR_ARG, __entry->n_rules) 2430); 2431 2432DEFINE_EVENT(wiphy_wdev_evt, rdev_abort_scan, 2433 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2434 TP_ARGS(wiphy, wdev) 2435); 2436 2437TRACE_EVENT(rdev_set_multicast_to_unicast, 2438 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2439 const bool enabled), 2440 TP_ARGS(wiphy, netdev, enabled), 2441 TP_STRUCT__entry( 2442 WIPHY_ENTRY 2443 NETDEV_ENTRY 2444 __field(bool, enabled) 2445 ), 2446 TP_fast_assign( 2447 WIPHY_ASSIGN; 2448 NETDEV_ASSIGN; 2449 __entry->enabled = enabled; 2450 ), 2451 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", unicast: %s", 2452 WIPHY_PR_ARG, NETDEV_PR_ARG, 2453 BOOL_TO_STR(__entry->enabled)) 2454); 2455 2456DEFINE_EVENT(wiphy_wdev_evt, rdev_get_txq_stats, 2457 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 2458 TP_ARGS(wiphy, wdev) 2459); 2460 2461TRACE_EVENT(rdev_get_ftm_responder_stats, 2462 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 2463 struct cfg80211_ftm_responder_stats *ftm_stats), 2464 2465 TP_ARGS(wiphy, netdev, ftm_stats), 2466 2467 TP_STRUCT__entry( 2468 WIPHY_ENTRY 2469 NETDEV_ENTRY 2470 __field(u64, timestamp) 2471 __field(u32, success_num) 2472 __field(u32, partial_num) 2473 __field(u32, failed_num) 2474 __field(u32, asap_num) 2475 __field(u32, non_asap_num) 2476 __field(u64, duration) 2477 __field(u32, unknown_triggers) 2478 __field(u32, reschedule) 2479 __field(u32, out_of_window) 2480 ), 2481 2482 TP_fast_assign( 2483 WIPHY_ASSIGN; 2484 NETDEV_ASSIGN; 2485 __entry->success_num = ftm_stats->success_num; 2486 __entry->partial_num = ftm_stats->partial_num; 2487 __entry->failed_num = ftm_stats->failed_num; 2488 __entry->asap_num = ftm_stats->asap_num; 2489 __entry->non_asap_num = ftm_stats->non_asap_num; 2490 __entry->duration = ftm_stats->total_duration_ms; 2491 __entry->unknown_triggers = ftm_stats->unknown_triggers_num; 2492 __entry->reschedule = ftm_stats->reschedule_requests_num; 2493 __entry->out_of_window = ftm_stats->out_of_window_triggers_num; 2494 ), 2495 2496 TP_printk(WIPHY_PR_FMT "Ftm responder stats: success %u, partial %u, " 2497 "failed %u, asap %u, non asap %u, total duration %llu, unknown " 2498 "triggers %u, rescheduled %u, out of window %u", WIPHY_PR_ARG, 2499 __entry->success_num, __entry->partial_num, __entry->failed_num, 2500 __entry->asap_num, __entry->non_asap_num, __entry->duration, 2501 __entry->unknown_triggers, __entry->reschedule, 2502 __entry->out_of_window) 2503); 2504 |
|
2371/************************************************************* 2372 * cfg80211 exported functions traces * 2373 *************************************************************/ 2374 2375TRACE_EVENT(cfg80211_return_bool, 2376 TP_PROTO(bool ret), 2377 TP_ARGS(ret), 2378 TP_STRUCT__entry( --- 776 unchanged lines hidden (view full) --- 3155 ), 3156 TP_fast_assign( 3157 WIPHY_ASSIGN; 3158 WDEV_ASSIGN; 3159 ), 3160 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 3161 WIPHY_PR_ARG, WDEV_PR_ARG) 3162); | 2505/************************************************************* 2506 * cfg80211 exported functions traces * 2507 *************************************************************/ 2508 2509TRACE_EVENT(cfg80211_return_bool, 2510 TP_PROTO(bool ret), 2511 TP_ARGS(ret), 2512 TP_STRUCT__entry( --- 776 unchanged lines hidden (view full) --- 3289 ), 3290 TP_fast_assign( 3291 WIPHY_ASSIGN; 3292 WDEV_ASSIGN; 3293 ), 3294 TP_printk(WIPHY_PR_FMT ", " WDEV_PR_FMT, 3295 WIPHY_PR_ARG, WDEV_PR_ARG) 3296); |
3163 3164TRACE_EVENT(rdev_start_radar_detection, 3165 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3166 struct cfg80211_chan_def *chandef, 3167 u32 cac_time_ms), 3168 TP_ARGS(wiphy, netdev, chandef, cac_time_ms), 3169 TP_STRUCT__entry( 3170 WIPHY_ENTRY 3171 NETDEV_ENTRY 3172 CHAN_DEF_ENTRY 3173 __field(u32, cac_time_ms) 3174 ), 3175 TP_fast_assign( 3176 WIPHY_ASSIGN; 3177 NETDEV_ASSIGN; 3178 CHAN_DEF_ASSIGN(chandef); 3179 __entry->cac_time_ms = cac_time_ms; 3180 ), 3181 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " CHAN_DEF_PR_FMT 3182 ", cac_time_ms=%u", 3183 WIPHY_PR_ARG, NETDEV_PR_ARG, CHAN_DEF_PR_ARG, 3184 __entry->cac_time_ms) 3185); 3186 3187TRACE_EVENT(rdev_set_mcast_rate, 3188 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3189 int *mcast_rate), 3190 TP_ARGS(wiphy, netdev, mcast_rate), 3191 TP_STRUCT__entry( 3192 WIPHY_ENTRY 3193 NETDEV_ENTRY 3194 __array(int, mcast_rate, NUM_NL80211_BANDS) 3195 ), 3196 TP_fast_assign( 3197 WIPHY_ASSIGN; 3198 NETDEV_ASSIGN; 3199 memcpy(__entry->mcast_rate, mcast_rate, 3200 sizeof(int) * NUM_NL80211_BANDS); 3201 ), 3202 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", " 3203 "mcast_rates [2.4GHz=0x%x, 5.2GHz=0x%x, 60GHz=0x%x]", 3204 WIPHY_PR_ARG, NETDEV_PR_ARG, 3205 __entry->mcast_rate[NL80211_BAND_2GHZ], 3206 __entry->mcast_rate[NL80211_BAND_5GHZ], 3207 __entry->mcast_rate[NL80211_BAND_60GHZ]) 3208); 3209 3210TRACE_EVENT(rdev_set_coalesce, 3211 TP_PROTO(struct wiphy *wiphy, struct cfg80211_coalesce *coalesce), 3212 TP_ARGS(wiphy, coalesce), 3213 TP_STRUCT__entry( 3214 WIPHY_ENTRY 3215 __field(int, n_rules) 3216 ), 3217 TP_fast_assign( 3218 WIPHY_ASSIGN; 3219 __entry->n_rules = coalesce ? coalesce->n_rules : 0; 3220 ), 3221 TP_printk(WIPHY_PR_FMT ", n_rules=%d", 3222 WIPHY_PR_ARG, __entry->n_rules) 3223); 3224 3225DEFINE_EVENT(wiphy_wdev_evt, rdev_abort_scan, 3226 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 3227 TP_ARGS(wiphy, wdev) 3228); 3229 3230TRACE_EVENT(rdev_set_multicast_to_unicast, 3231 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3232 const bool enabled), 3233 TP_ARGS(wiphy, netdev, enabled), 3234 TP_STRUCT__entry( 3235 WIPHY_ENTRY 3236 NETDEV_ENTRY 3237 __field(bool, enabled) 3238 ), 3239 TP_fast_assign( 3240 WIPHY_ASSIGN; 3241 NETDEV_ASSIGN; 3242 __entry->enabled = enabled; 3243 ), 3244 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", unicast: %s", 3245 WIPHY_PR_ARG, NETDEV_PR_ARG, 3246 BOOL_TO_STR(__entry->enabled)) 3247); 3248 3249DEFINE_EVENT(wiphy_wdev_evt, rdev_get_txq_stats, 3250 TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev), 3251 TP_ARGS(wiphy, wdev) 3252); 3253 3254TRACE_EVENT(rdev_get_ftm_responder_stats, 3255 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, 3256 struct cfg80211_ftm_responder_stats *ftm_stats), 3257 3258 TP_ARGS(wiphy, netdev, ftm_stats), 3259 3260 TP_STRUCT__entry( 3261 WIPHY_ENTRY 3262 NETDEV_ENTRY 3263 __field(u64, timestamp) 3264 __field(u32, success_num) 3265 __field(u32, partial_num) 3266 __field(u32, failed_num) 3267 __field(u32, asap_num) 3268 __field(u32, non_asap_num) 3269 __field(u64, duration) 3270 __field(u32, unknown_triggers) 3271 __field(u32, reschedule) 3272 __field(u32, out_of_window) 3273 ), 3274 3275 TP_fast_assign( 3276 WIPHY_ASSIGN; 3277 NETDEV_ASSIGN; 3278 __entry->success_num = ftm_stats->success_num; 3279 __entry->partial_num = ftm_stats->partial_num; 3280 __entry->failed_num = ftm_stats->failed_num; 3281 __entry->asap_num = ftm_stats->asap_num; 3282 __entry->non_asap_num = ftm_stats->non_asap_num; 3283 __entry->duration = ftm_stats->total_duration_ms; 3284 __entry->unknown_triggers = ftm_stats->unknown_triggers_num; 3285 __entry->reschedule = ftm_stats->reschedule_requests_num; 3286 __entry->out_of_window = ftm_stats->out_of_window_triggers_num; 3287 ), 3288 3289 TP_printk(WIPHY_PR_FMT "Ftm responder stats: success %u, partial %u, " 3290 "failed %u, asap %u, non asap %u, total duration %llu, unknown " 3291 "triggers %u, rescheduled %u, out of window %u", WIPHY_PR_ARG, 3292 __entry->success_num, __entry->partial_num, __entry->failed_num, 3293 __entry->asap_num, __entry->non_asap_num, __entry->duration, 3294 __entry->unknown_triggers, __entry->reschedule, 3295 __entry->out_of_window) 3296); | |
3297#endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ 3298 3299#undef TRACE_INCLUDE_PATH 3300#define TRACE_INCLUDE_PATH . 3301#undef TRACE_INCLUDE_FILE 3302#define TRACE_INCLUDE_FILE trace 3303#include <trace/define_trace.h> | 3297#endif /* !__RDEV_OPS_TRACE || TRACE_HEADER_MULTI_READ */ 3298 3299#undef TRACE_INCLUDE_PATH 3300#define TRACE_INCLUDE_PATH . 3301#undef TRACE_INCLUDE_FILE 3302#define TRACE_INCLUDE_FILE trace 3303#include <trace/define_trace.h> |