net: Fix stack info collector in net shell
The cc2520 driver RX thread did not like the stack information collection macros defined in net_core.h. Both the cc2520 TX and RX got the same variable name which did not compile. This is now changed so that the first parameter is added to the variable name to create a unique variable. Change-Id: Ia41d01a71afd73af2ef31aa5f7a890a3cf0385aa Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
bd48a9eca7
commit
b4cba17408
5 changed files with 13 additions and 8 deletions
|
@ -104,17 +104,18 @@ struct net_stack_info {
|
|||
};
|
||||
|
||||
#if defined(CONFIG_NET_SHELL)
|
||||
#define NET_STACK_GET_NAME(name, sfx) (__net_stack_##name##_##sfx)
|
||||
#define NET_STACK_GET_NAME(pretty, name, sfx) \
|
||||
(__net_stack_##pretty##_##name##_##sfx)
|
||||
|
||||
#define NET_STACK_INFO_ADDR(_pretty, _name, _orig, _size, _addr, sfx) \
|
||||
static struct net_stack_info \
|
||||
(NET_STACK_GET_NAME(_name, sfx)) __used \
|
||||
(NET_STACK_GET_NAME(_pretty, _name, sfx)) __used \
|
||||
__attribute__((__section__(".net_stack.data"))) = { \
|
||||
.stack = _addr, \
|
||||
.size = _size, \
|
||||
.orig_size = _orig, \
|
||||
.name = #_name, \
|
||||
.pretty_name = _pretty, \
|
||||
.pretty_name = #_pretty, \
|
||||
}
|
||||
|
||||
#define NET_STACK_INFO(_pretty_name, _name, _orig, _size) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue