~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal-proposed

« back to all changes in this revision

Viewing changes to net/mac80211/driver-trace.h

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft, Andy Whitcroft
  • Date: 2012-06-21 09:16:38 UTC
  • Revision ID: package-import@ubuntu.com-20120621091638-gubhv4nox8xez1ct
Tags: 3.5.0-1.1
[ Andy Whitcroft]

* Rebuild lowlatency against Ubuntu-3.5.0-1.1
* All new configuration system to allow configuration deltas to be
  exposed via debian.lowlatency/config-delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#include <net/mac80211.h>
6
6
#include "ieee80211_i.h"
7
7
 
8
 
#if !defined(CONFIG_MAC80211_DRIVER_API_TRACER) || defined(__CHECKER__)
9
 
#undef TRACE_EVENT
10
 
#define TRACE_EVENT(name, proto, ...) \
11
 
static inline void trace_ ## name(proto) {}
12
 
#undef DECLARE_EVENT_CLASS
13
 
#define DECLARE_EVENT_CLASS(...)
14
 
#undef DEFINE_EVENT
15
 
#define DEFINE_EVENT(evt_class, name, proto, ...) \
16
 
static inline void trace_ ## name(proto) {}
17
 
#endif
18
 
 
19
8
#undef TRACE_SYSTEM
20
9
#define TRACE_SYSTEM mac80211
21
10
 
172
161
        TP_ARGS(local)
173
162
);
174
163
 
 
164
DEFINE_EVENT(local_u32_evt, drv_get_et_strings,
 
165
             TP_PROTO(struct ieee80211_local *local, u32 sset),
 
166
             TP_ARGS(local, sset)
 
167
);
 
168
 
 
169
DEFINE_EVENT(local_u32_evt, drv_get_et_sset_count,
 
170
             TP_PROTO(struct ieee80211_local *local, u32 sset),
 
171
             TP_ARGS(local, sset)
 
172
);
 
173
 
 
174
DEFINE_EVENT(local_only_evt, drv_get_et_stats,
 
175
             TP_PROTO(struct ieee80211_local *local),
 
176
             TP_ARGS(local)
 
177
);
 
178
 
175
179
DEFINE_EVENT(local_only_evt, drv_suspend,
176
180
        TP_PROTO(struct ieee80211_local *local),
177
181
        TP_ARGS(local)
182
186
        TP_ARGS(local)
183
187
);
184
188
 
 
189
TRACE_EVENT(drv_set_wakeup,
 
190
        TP_PROTO(struct ieee80211_local *local, bool enabled),
 
191
        TP_ARGS(local, enabled),
 
192
        TP_STRUCT__entry(
 
193
                LOCAL_ENTRY
 
194
                __field(bool, enabled)
 
195
        ),
 
196
        TP_fast_assign(
 
197
                LOCAL_ASSIGN;
 
198
                __entry->enabled = enabled;
 
199
        ),
 
200
        TP_printk(LOCAL_PR_FMT " enabled:%d", LOCAL_PR_ARG, __entry->enabled)
 
201
);
 
202
 
185
203
DEFINE_EVENT(local_only_evt, drv_stop,
186
204
        TP_PROTO(struct ieee80211_local *local),
187
205
        TP_ARGS(local)
307
325
                __entry->dtimper = info->dtim_period;
308
326
                __entry->bcnint = info->beacon_int;
309
327
                __entry->assoc_cap = info->assoc_capability;
310
 
                __entry->timestamp = info->timestamp;
 
328
                __entry->timestamp = info->last_tsf;
311
329
                __entry->basic_rates = info->basic_rates;
312
330
                __entry->enable_beacon = info->enable_beacon;
313
331
                __entry->ht_operation_mode = info->ht_operation_mode;
319
337
        )
320
338
);
321
339
 
322
 
DECLARE_EVENT_CLASS(tx_sync_evt,
323
 
        TP_PROTO(struct ieee80211_local *local,
324
 
                 struct ieee80211_sub_if_data *sdata,
325
 
                 const u8 *bssid,
326
 
                 enum ieee80211_tx_sync_type type),
327
 
        TP_ARGS(local, sdata, bssid, type),
328
 
 
329
 
        TP_STRUCT__entry(
330
 
                LOCAL_ENTRY
331
 
                VIF_ENTRY
332
 
                __array(char, bssid, ETH_ALEN)
333
 
                __field(u32, sync_type)
334
 
        ),
335
 
 
336
 
        TP_fast_assign(
337
 
                LOCAL_ASSIGN;
338
 
                VIF_ASSIGN;
339
 
                memcpy(__entry->bssid, bssid, ETH_ALEN);
340
 
                __entry->sync_type = type;
341
 
        ),
342
 
 
343
 
        TP_printk(
344
 
                LOCAL_PR_FMT  VIF_PR_FMT " bssid:%pM type:%d",
345
 
                LOCAL_PR_ARG, VIF_PR_ARG, __entry->bssid, __entry->sync_type
346
 
        )
347
 
);
348
 
 
349
 
DEFINE_EVENT(tx_sync_evt, drv_tx_sync,
350
 
        TP_PROTO(struct ieee80211_local *local,
351
 
                 struct ieee80211_sub_if_data *sdata,
352
 
                 const u8 *bssid,
353
 
                 enum ieee80211_tx_sync_type type),
354
 
        TP_ARGS(local, sdata, bssid, type)
355
 
);
356
 
 
357
 
DEFINE_EVENT(tx_sync_evt, drv_finish_tx_sync,
358
 
        TP_PROTO(struct ieee80211_local *local,
359
 
                 struct ieee80211_sub_if_data *sdata,
360
 
                 const u8 *bssid,
361
 
                 enum ieee80211_tx_sync_type type),
362
 
        TP_ARGS(local, sdata, bssid, type)
363
 
);
364
 
 
365
340
TRACE_EVENT(drv_prepare_multicast,
366
341
        TP_PROTO(struct ieee80211_local *local, int mc_count),
367
342
 
646
621
        )
647
622
);
648
623
 
 
624
TRACE_EVENT(drv_sta_state,
 
625
        TP_PROTO(struct ieee80211_local *local,
 
626
                 struct ieee80211_sub_if_data *sdata,
 
627
                 struct ieee80211_sta *sta,
 
628
                 enum ieee80211_sta_state old_state,
 
629
                 enum ieee80211_sta_state new_state),
 
630
 
 
631
        TP_ARGS(local, sdata, sta, old_state, new_state),
 
632
 
 
633
        TP_STRUCT__entry(
 
634
                LOCAL_ENTRY
 
635
                VIF_ENTRY
 
636
                STA_ENTRY
 
637
                __field(u32, old_state)
 
638
                __field(u32, new_state)
 
639
        ),
 
640
 
 
641
        TP_fast_assign(
 
642
                LOCAL_ASSIGN;
 
643
                VIF_ASSIGN;
 
644
                STA_ASSIGN;
 
645
                __entry->old_state = old_state;
 
646
                __entry->new_state = new_state;
 
647
        ),
 
648
 
 
649
        TP_printk(
 
650
                LOCAL_PR_FMT  VIF_PR_FMT  STA_PR_FMT " state: %d->%d",
 
651
                LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG,
 
652
                __entry->old_state, __entry->new_state
 
653
        )
 
654
);
 
655
 
 
656
TRACE_EVENT(drv_sta_rc_update,
 
657
        TP_PROTO(struct ieee80211_local *local,
 
658
                 struct ieee80211_sub_if_data *sdata,
 
659
                 struct ieee80211_sta *sta,
 
660
                 u32 changed),
 
661
 
 
662
        TP_ARGS(local, sdata, sta, changed),
 
663
 
 
664
        TP_STRUCT__entry(
 
665
                LOCAL_ENTRY
 
666
                VIF_ENTRY
 
667
                STA_ENTRY
 
668
                __field(u32, changed)
 
669
        ),
 
670
 
 
671
        TP_fast_assign(
 
672
                LOCAL_ASSIGN;
 
673
                VIF_ASSIGN;
 
674
                STA_ASSIGN;
 
675
                __entry->changed = changed;
 
676
        ),
 
677
 
 
678
        TP_printk(
 
679
                LOCAL_PR_FMT  VIF_PR_FMT  STA_PR_FMT " changed: 0x%x",
 
680
                LOCAL_PR_ARG, VIF_PR_ARG, STA_PR_ARG, __entry->changed
 
681
        )
 
682
);
 
683
 
649
684
TRACE_EVENT(drv_sta_add,
650
685
        TP_PROTO(struct ieee80211_local *local,
651
686
                 struct ieee80211_sub_if_data *sdata,
699
734
TRACE_EVENT(drv_conf_tx,
700
735
        TP_PROTO(struct ieee80211_local *local,
701
736
                 struct ieee80211_sub_if_data *sdata,
702
 
                 u16 queue,
703
 
                 const struct ieee80211_tx_queue_params *params),
 
737
                 u16 ac, const struct ieee80211_tx_queue_params *params),
704
738
 
705
 
        TP_ARGS(local, sdata, queue, params),
 
739
        TP_ARGS(local, sdata, ac, params),
706
740
 
707
741
        TP_STRUCT__entry(
708
742
                LOCAL_ENTRY
709
743
                VIF_ENTRY
710
 
                __field(u16, queue)
 
744
                __field(u16, ac)
711
745
                __field(u16, txop)
712
746
                __field(u16, cw_min)
713
747
                __field(u16, cw_max)
718
752
        TP_fast_assign(
719
753
                LOCAL_ASSIGN;
720
754
                VIF_ASSIGN;
721
 
                __entry->queue = queue;
 
755
                __entry->ac = ac;
722
756
                __entry->txop = params->txop;
723
757
                __entry->cw_max = params->cw_max;
724
758
                __entry->cw_min = params->cw_min;
727
761
        ),
728
762
 
729
763
        TP_printk(
730
 
                LOCAL_PR_FMT  VIF_PR_FMT  " queue:%d",
731
 
                LOCAL_PR_ARG, VIF_PR_ARG, __entry->queue
 
764
                LOCAL_PR_FMT  VIF_PR_FMT  " AC:%d",
 
765
                LOCAL_PR_ARG, VIF_PR_ARG, __entry->ac
732
766
        )
733
767
);
734
768