perftest: Make rdma_lat and rdma_bw executable names rdma neutral Since rdma_lat and rdma_bw use RDMA CM, they can be used with both IB and iWARP so make their executable names neutral (by removing ib_)
IB only tests only require linking with libibverbs Also, spec file change for executable name changes Signed-off-by: Hal Rosenstock <[email protected]> --- Changes since v1: Reverted clock_test diff --git a/Makefile b/Makefile index 8042531..bda56d4 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ -TESTS = write_bw_postlist rdma_lat rdma_bw send_lat send_bw write_lat write_bw read_lat read_bw +RDMACM_TESTS = rdma_lat rdma_bw +TESTS = write_bw_postlist send_lat send_bw write_lat write_bw read_lat read_bw UTILS = clock_test -all: ${TESTS} ${UTILS} +all: ${RDMACM_TESTS} ${TESTS} ${UTILS} CFLAGS += -Wall -g -D_GNU_SOURCE -O2 EXTRA_FILES = get_clock.c @@ -10,11 +11,16 @@ EXTRA_HEADERS = get_clock.h LOADLIBES += LDFLAGS += -${TESTS}: LOADLIBES += -libverbs -lrdmacm +${RDMACM_TESTS}: LOADLIBES += -libverbs -lrdmacm +${TESTS} ${UTILS}: LOADLIBES += -libverbs +${RDMACM_TESTS}: %: %.c ${EXTRA_FILES} ${EXTRA_HEADERS} + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $< ${EXTRA_FILES} $(LOADLIBES) $(LDLIBS) -o $@ ${TESTS} ${UTILS}: %: %.c ${EXTRA_FILES} ${EXTRA_HEADERS} $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $< ${EXTRA_FILES} $(LOADLIBES) $(LDLIBS) -o ib_$@ + clean: + $(foreach fname,${RDMACM_TESTS}, rm -f ${fname}) $(foreach fname,${TESTS} ${UTILS}, rm -f ib_${fname}) .DELETE_ON_ERROR: .PHONY: all clean diff --git a/perftest.spec b/perftest.spec index bd234e1..c6d18fe 100755 --- a/perftest.spec +++ b/perftest.spec @@ -23,8 +23,8 @@ export CFLAGS="$RPM_OPT_FLAGS" chmod -x runme %install -install -D -m 0755 ib_rdma_lat $RPM_BUILD_ROOT%{_bindir}/ib_rdma_lat -install -D -m 0755 ib_rdma_bw $RPM_BUILD_ROOT%{_bindir}/ib_rdma_bw +install -D -m 0755 rdma_lat $RPM_BUILD_ROOT%{_bindir}/rdma_lat +install -D -m 0755 rdma_bw $RPM_BUILD_ROOT%{_bindir}/rdma_bw install -D -m 0755 ib_write_lat $RPM_BUILD_ROOT%{_bindir}/ib_write_lat install -D -m 0755 ib_write_bw $RPM_BUILD_ROOT%{_bindir}/ib_write_bw install -D -m 0755 ib_send_lat $RPM_BUILD_ROOT%{_bindir}/ib_send_lat @@ -43,6 +43,8 @@ rm -rf ${RPM_BUILD_ROOT} %_bindir/* %changelog +* Sat Apr 18 2009 - [email protected] +- Change executable names for rdma_lat and rdma_bw * Mon Jul 09 2007 - [email protected] - Use correct version * Wed Jul 04 2007 - [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
