diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2009-12-18 13:32:10 -0500 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-18 13:38:29 -0500 |
| commit | 8e5898fc7498693cab0b153eea5e37b302e307d2 (patch) | |
| tree | 54bc25ec88b48a6214126b13d993bd901d7e732f /plugin_mac80211.c | |
| parent | 40a8521b53435a97e855c7d65486da41b30f9131 (diff) | |
| parent | b05f27dc7d0dab346e20795ce4d9f6d56d3e18ea (diff) | |
Merge branch 'trace-cmd' into trace-view
Fixed up the trace-graph and trace-cmd view to handle the new
API
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'plugin_mac80211.c')
| -rw-r--r-- | plugin_mac80211.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugin_mac80211.c b/plugin_mac80211.c index 766d9ce..497d564 100644 --- a/plugin_mac80211.c +++ b/plugin_mac80211.c | |||
| @@ -145,10 +145,11 @@ static void _print_flag(struct trace_seq *s, struct event_format *event, | |||
| 145 | #define SFX(fn) _print_field(s, fn ":%#x", event, fn, data) | 145 | #define SFX(fn) _print_field(s, fn ":%#x", event, fn, data) |
| 146 | #define SP() trace_seq_putc(s, ' ') | 146 | #define SP() trace_seq_putc(s, ' ') |
| 147 | 147 | ||
| 148 | static int drv_bss_info_changed(struct trace_seq *s, void *data, int size, | 148 | static int drv_bss_info_changed(struct trace_seq *s, struct record *record, |
| 149 | struct event_format *event, int cpu, | 149 | struct event_format *event) |
| 150 | unsigned long long nsecs) | ||
| 151 | { | 150 | { |
| 151 | void *data = record->data; | ||
| 152 | |||
| 152 | print_string(s, event, "wiphy_name", data); | 153 | print_string(s, event, "wiphy_name", data); |
| 153 | trace_seq_printf(s, " vif:"); | 154 | trace_seq_printf(s, " vif:"); |
| 154 | print_string(s, event, "vif_name", data); | 155 | print_string(s, event, "vif_name", data); |
| @@ -172,10 +173,11 @@ static int drv_bss_info_changed(struct trace_seq *s, void *data, int size, | |||
| 172 | return 0; | 173 | return 0; |
| 173 | } | 174 | } |
| 174 | 175 | ||
| 175 | static int drv_config(struct trace_seq *s, void *data, | 176 | static int drv_config(struct trace_seq *s, struct record *record, |
| 176 | int size, struct event_format *event, int cpu, | 177 | struct event_format *event) |
| 177 | unsigned long long nsecs) | ||
| 178 | { | 178 | { |
| 179 | void *data = record->data; | ||
| 180 | |||
| 179 | print_string(s, event, "wiphy_name", data); | 181 | print_string(s, event, "wiphy_name", data); |
| 180 | trace_seq_putc(s, ' '); | 182 | trace_seq_putc(s, ' '); |
| 181 | print_flag(s, event, "flags", data, | 183 | print_flag(s, event, "flags", data, |
