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
mk: restrict CPU flags list
[dpdk.git]
/
app
/
test
/
test_interrupts.c
diff --git
a/app/test/test_interrupts.c
b/app/test/test_interrupts.c
index
31f3d26
..
6e3dec3
100644
(file)
--- a/
app/test/test_interrupts.c
+++ b/
app/test/test_interrupts.c
@@
-1,7
+1,7
@@
/*-
* BSD LICENSE
*
/*-
* BSD LICENSE
*
- * Copyright(c) 2010-201
3
Intel Corporation. All rights reserved.
+ * Copyright(c) 2010-201
4
Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-35,8
+35,6
@@
#include <stdint.h>
#include <unistd.h>
#include <stdint.h>
#include <unistd.h>
-#include <cmdline_parse.h>
-
#include <rte_common.h>
#include <rte_cycles.h>
#include <rte_interrupts.h>
#include <rte_common.h>
#include <rte_cycles.h>
#include <rte_interrupts.h>
@@
-159,7
+157,7
@@
test_interrupt_handle_compare(struct rte_intr_handle *intr_handle_l,
}
#else
}
#else
-/* to be implemented for b
aremetal
later */
+/* to be implemented for b
sd
later */
static inline int
test_interrupt_handle_sanity_check(struct rte_intr_handle *intr_handle)
{
static inline int
test_interrupt_handle_sanity_check(struct rte_intr_handle *intr_handle)
{
@@
-397,7
+395,7
@@
test_interrupt_full_path_check(enum test_interrupt_handle_type intr_type)
/**
* Main function of testing interrupt.
*/
/**
* Main function of testing interrupt.
*/
-int
+
static
int
test_interrupt(void)
{
int ret = -1;
test_interrupt(void)
{
int ret = -1;
@@
-550,3
+548,8
@@
out:
return ret;
}
return ret;
}
+static struct test_command interrupt_cmd = {
+ .command = "interrupt_autotest",
+ .callback = test_interrupt,
+};
+REGISTER_TEST_COMMAND(interrupt_cmd);