-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 268712 b: refs/heads/master c: 8be00d9 h: refs/heads/master v: v3
- Loading branch information
Roland Vossen
authored and
Greg Kroah-Hartman
committed
Oct 5, 2011
1 parent
cb60072
commit 1a81409
Showing
6 changed files
with
125 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 68327a1910f4b32226de47f9443068ce511ae2de | ||
refs/heads/master: 8be00d98f167b95fac8886d60f9942ef0c744445 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
trunk/drivers/staging/brcm80211/brcmsmac/brcms_trace_events.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) 2011 Broadcom Corporation | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
* copyright notice and this permission notice appear in all copies. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*/ | ||
|
||
#include <linux/module.h> /* bug in tracepoint.h, it should include this */ | ||
|
||
#ifndef __CHECKER__ | ||
#include "mac80211_if.h" | ||
#define CREATE_TRACE_POINTS | ||
#include "brcms_trace_events.h" | ||
#endif |
92 changes: 92 additions & 0 deletions
92
trunk/drivers/staging/brcm80211/brcmsmac/brcms_trace_events.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* | ||
* Copyright (c) 2011 Broadcom Corporation | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any | ||
* purpose with or without fee is hereby granted, provided that the above | ||
* copyright notice and this permission notice appear in all copies. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION | ||
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | ||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*/ | ||
|
||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM brcmsmac | ||
|
||
#if !defined(__TRACE_BRCMSMAC_H) || defined(TRACE_HEADER_MULTI_READ) | ||
|
||
#define __TRACE_BRCMSMAC_H | ||
|
||
#include <linux/tracepoint.h> | ||
#include "mac80211_if.h" | ||
|
||
#ifndef CONFIG_BRCMDBG | ||
#undef TRACE_EVENT | ||
#define TRACE_EVENT(name, proto, ...) \ | ||
static inline void trace_ ## name(proto) {} | ||
#endif | ||
|
||
/* | ||
* We define a tracepoint, its arguments, its printk format and its | ||
* 'fast binary record' layout. | ||
*/ | ||
TRACE_EVENT(brcms_timer, | ||
/* TPPROTO is the prototype of the function called by this tracepoint */ | ||
TP_PROTO(struct brcms_timer *t), | ||
/* | ||
* TPARGS(firstarg, p) are the parameters names, same as found in the | ||
* prototype. | ||
*/ | ||
TP_ARGS(t), | ||
/* | ||
* Fast binary tracing: define the trace record via TP_STRUCT__entry(). | ||
* You can think about it like a regular C structure local variable | ||
* definition. | ||
*/ | ||
TP_STRUCT__entry( | ||
__field(uint, ms) | ||
__field(uint, set) | ||
__field(uint, periodic) | ||
), | ||
TP_fast_assign( | ||
__entry->ms = t->ms; | ||
__entry->set = t->set; | ||
__entry->periodic = t->periodic; | ||
), | ||
TP_printk( | ||
"ms=%u set=%u periodic=%u", | ||
__entry->ms, __entry->set, __entry->periodic | ||
) | ||
); | ||
|
||
TRACE_EVENT(brcms_dpc, | ||
TP_PROTO(unsigned long data), | ||
TP_ARGS(data), | ||
TP_STRUCT__entry( | ||
__field(unsigned long, data) | ||
), | ||
TP_fast_assign( | ||
__entry->data = data; | ||
), | ||
TP_printk( | ||
"data=%p", | ||
(void *)__entry->data | ||
) | ||
); | ||
|
||
#endif /* __TRACE_BRCMSMAC_H */ | ||
|
||
#ifdef CONFIG_BRCMDBG | ||
|
||
#undef TRACE_INCLUDE_PATH | ||
#define TRACE_INCLUDE_PATH . | ||
#undef TRACE_INCLUDE_FILE | ||
#define TRACE_INCLUDE_FILE brcms_trace_events | ||
|
||
#include <trace/define_trace.h> | ||
|
||
#endif /* CONFIG_BRCMDBG */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters