From patchwork Sun Oct 4 16:11:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 51622 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n94GGIhR027119 for ; Sun, 4 Oct 2009 16:16:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbZJDQP5 (ORCPT ); Sun, 4 Oct 2009 12:15:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756877AbZJDQP5 (ORCPT ); Sun, 4 Oct 2009 12:15:57 -0400 Received: from qmta12.westchester.pa.mail.comcast.net ([76.96.59.227]:58712 "EHLO QMTA12.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752656AbZJDQP4 (ORCPT ); Sun, 4 Oct 2009 12:15:56 -0400 Received: from OMTA24.westchester.pa.mail.comcast.net ([76.96.62.76]) by QMTA12.westchester.pa.mail.comcast.net with comcast id oeC91c0041ei1Bg5CgFLMN; Sun, 04 Oct 2009 16:15:20 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA24.westchester.pa.mail.comcast.net with comcast id ogMN1c0020hNrtn3kgMNvh; Sun, 04 Oct 2009 16:21:22 +0000 Received: from hal.comcast.net (localhost.localdomain [127.0.0.1]) by hal.comcast.net (8.14.3/8.14.3) with ESMTP id n94GCZle028403; Sun, 4 Oct 2009 12:12:40 -0400 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id n94GBfDB028336; Sun, 4 Oct 2009 12:11:41 -0400 Date: Sun, 4 Oct 2009 12:11:41 -0400 From: Hal Rosenstock To: idos@dev.mellanox.co.il Cc: linux-rdma@vger.kernel.org Subject: [PATCHv2] perftest: Make rdma_lat and rdma_bw executable names rdma neutral Message-ID: <20091004161141.GB28321@comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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 - hal.rosenstock@gmail.com +- Change executable names for rdma_lat and rdma_bw * Mon Jul 09 2007 - hvogel@suse.de - Use correct version * Wed Jul 04 2007 - hvogel@suse.de