git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use appropriate EAL macro for constructors
[dpdk.git]
/
app
/
test
/
test.h
diff --git
a/app/test/test.h
b/app/test/test.h
index
7c24432
..
9b3846b
100644
(file)
--- a/
app/test/test.h
+++ b/
app/test/test.h
@@
-177,8
+177,7
@@
void add_test_command(struct test_command *t);
.command = RTE_STR(cmd), \
.callback = func, \
}; \
- static void __attribute__((constructor, used)) \
- test_register_##cmd(void) \
+ RTE_INIT(test_register_##cmd) \
{ \
add_test_command(&test_struct_##cmd); \
}