test/event: rename event to event_perf

While here, make it clear this is a benchmark that
tests internal APIs.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ie5a57fdcee12b47568542721095c49d28ece5529
This commit is contained in:
Jim Harris 2017-01-20 15:21:18 -07:00 committed by Ben Walker
parent 8f0aed2dd3
commit 59408ad2ef
8 changed files with 9 additions and 9 deletions

View File

@ -206,9 +206,6 @@ struct spdk_event *spdk_event_allocate(uint32_t lcore, spdk_event_fn fn,
*/
void spdk_event_call(struct spdk_event *event);
/* TODO: This is only used by tests and should be made private */
uint32_t spdk_event_queue_run_batch(uint32_t lcore);
/**
* \brief Register a poller on the given lcore.
*/

View File

@ -51,6 +51,8 @@ int spdk_reactors_fini(void);
void spdk_reactors_start(void);
void spdk_reactors_stop(void);
uint32_t spdk_event_queue_run_batch(uint32_t lcore);
struct spdk_subsystem {
const char *name;
int (*init)(void);

View File

@ -34,7 +34,7 @@
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
DIRS-y = event reactor subsystem
DIRS-y = event_perf reactor subsystem
.PHONY: all clean $(DIRS-y)

View File

@ -5,7 +5,7 @@ rootdir=$testdir/../../..
source $rootdir/scripts/autotest_common.sh
timing_enter event
$testdir/event/event -m 0xF -t 5
$testdir/event_perf/event_perf -m 0xF -t 5
$testdir/reactor/reactor -t 1
$testdir/subsystem/subsystem_ut
timing_exit event

View File

@ -1 +0,0 @@
event

1
test/lib/event/event_perf/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
event_perf

View File

@ -36,8 +36,8 @@ include $(SPDK_ROOT_DIR)/mk/spdk.app.mk
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
CFLAGS += $(ENV_CFLAGS)
APP = event
C_SRCS := event.c
APP = event_perf
C_SRCS := event_perf.c
SPDK_LIB_LIST = event trace conf util log

View File

@ -44,6 +44,7 @@
#include "spdk/env.h"
#include "spdk/event.h"
#include "spdk_internal/event.h"
#include "spdk/log.h"
static uint64_t g_tsc_rate;
@ -125,7 +126,7 @@ main(int argc, char **argv)
int i;
spdk_app_opts_init(&opts);
opts.name = "event";
opts.name = "event_perf";
g_time_in_sec = 0;