All of lore.kernel.org
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Jiri Olsa <jolsa@redhat.com>
Cc: linux-kernel@vger.kernel.org,
	Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Ingo Molnar <mingo@elte.hu>, Paul Mackerras <paulus@samba.org>,
	Corey Ashford <cjashfor@linux.vnet.ibm.com>,
	Frederic Weisbecker <fweisbec@gmail.com>
Subject: Re: [PATCH 02/25] perf tests: Move test objects into 'tests' directory
Date: Fri, 02 Nov 2012 10:48:57 +0900	[thread overview]
Message-ID: <87k3u44vw6.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <1351634526-1516-3-git-send-email-jolsa@redhat.com> (Jiri Olsa's message of "Tue, 30 Oct 2012 23:01:43 +0100")

Hi Jiri,

Despite its way to acme's tree, I'd like to leave a few comments. :)


On Tue, 30 Oct 2012 23:01:43 +0100, Jiri Olsa wrote:
> Separating test objects into 'tests' directory.
>
> Signed-off-by: Jiri Olsa <jolsa@redhat.com>
> Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Paul Mackerras <paulus@samba.org>
> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> ---
>  tools/perf/Makefile                 |    9 +-
>  tools/perf/builtin-test.c           | 1559 -----------------------------------
>  tools/perf/tests/builtin-test.c     | 1559 +++++++++++++++++++++++++++++++++++
>  tools/perf/tests/dso-data.c         |  153 ++++
>  tools/perf/tests/parse-events.c     | 1116 +++++++++++++++++++++++++
>  tools/perf/util/dso-test-data.c     |  153 ----
>  tools/perf/util/parse-events-test.c | 1116 -------------------------

Looks like it should be considered as renames.  Isn't 'git format-patch
-M' working?


>  7 files changed, 2833 insertions(+), 2832 deletions(-)
>  delete mode 100644 tools/perf/builtin-test.c
>  create mode 100644 tools/perf/tests/builtin-test.c
>  create mode 100644 tools/perf/tests/dso-data.c
>  create mode 100644 tools/perf/tests/parse-events.c
>  delete mode 100644 tools/perf/util/dso-test-data.c
>  delete mode 100644 tools/perf/util/parse-events-test.c
>
> diff --git a/tools/perf/Makefile b/tools/perf/Makefile
> index 3e807d7..2d3427f 100644
> --- a/tools/perf/Makefile
> +++ b/tools/perf/Makefile
> @@ -169,7 +169,7 @@ endif
>  
>  ### --- END CONFIGURATION SECTION ---
>  
> -BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)util -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
> +BASIC_CFLAGS = -Iutil/include -Iarch/$(ARCH)/include -I$(OUTPUT)util -Iutil -I. -I$(TRACE_EVENT_DIR) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE

Hmm..  Do you really want this?  AFAIK there're lots of places that
include header files under the util directory and they used relative
path.  I don't know how it affects them but at least they can be changed
to use simpler path with this change.


>  BASIC_LDFLAGS =
>  
>  ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y)
> @@ -371,7 +371,6 @@ LIB_OBJS += $(OUTPUT)util/help.o
>  LIB_OBJS += $(OUTPUT)util/levenshtein.o
>  LIB_OBJS += $(OUTPUT)util/parse-options.o
>  LIB_OBJS += $(OUTPUT)util/parse-events.o
> -LIB_OBJS += $(OUTPUT)util/parse-events-test.o
>  LIB_OBJS += $(OUTPUT)util/path.o
>  LIB_OBJS += $(OUTPUT)util/rbtree.o
>  LIB_OBJS += $(OUTPUT)util/bitmap.o
> @@ -389,7 +388,6 @@ LIB_OBJS += $(OUTPUT)util/sigchain.o
>  LIB_OBJS += $(OUTPUT)util/dso.o
>  LIB_OBJS += $(OUTPUT)util/symbol.o
>  LIB_OBJS += $(OUTPUT)util/symbol-elf.o
> -LIB_OBJS += $(OUTPUT)util/dso-test-data.o
>  LIB_OBJS += $(OUTPUT)util/color.o
>  LIB_OBJS += $(OUTPUT)util/pager.o
>  LIB_OBJS += $(OUTPUT)util/header.o
> @@ -430,6 +428,9 @@ LIB_OBJS += $(OUTPUT)ui/stdio/hist.o
>  
>  LIB_OBJS += $(OUTPUT)arch/common.o
>  
> +LIB_OBJS += $(OUTPUT)tests/parse-events.o
> +LIB_OBJS += $(OUTPUT)tests/dso-data.o
> +

Maybe TEST_OBJS?  I guess they don't need to be included in libperf?


>  BUILTIN_OBJS += $(OUTPUT)builtin-annotate.o
>  BUILTIN_OBJS += $(OUTPUT)builtin-bench.o
>  # Benchmark modules
> @@ -459,8 +460,8 @@ BUILTIN_OBJS += $(OUTPUT)builtin-probe.o
>  BUILTIN_OBJS += $(OUTPUT)builtin-kmem.o
>  BUILTIN_OBJS += $(OUTPUT)builtin-lock.o
>  BUILTIN_OBJS += $(OUTPUT)builtin-kvm.o
> -BUILTIN_OBJS += $(OUTPUT)builtin-test.o
>  BUILTIN_OBJS += $(OUTPUT)builtin-inject.o
> +BUILTIN_OBJS += $(OUTPUT)tests/builtin-test.o

Placing builtin command in a different directory looks little bit odd.

Thanks,
Namhyung

  reply	other threads:[~2012-11-02  1:49 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-30 22:01 [PATCH 00/25] perf test: Add perf_event_attr tests Jiri Olsa
2012-10-30 22:01 ` [PATCH 01/25] perf tools: Remove BINDIR define from exec_cmd.o compilation Jiri Olsa
2012-11-14  6:36   ` [tip:perf/core] perf tools: Remove BINDIR define from exec_cmd. o compilation tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 02/25] perf tests: Move test objects into 'tests' directory Jiri Olsa
2012-11-02  1:48   ` Namhyung Kim [this message]
2012-11-02 10:30     ` Jiri Olsa
2012-11-14  6:39   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 03/25] perf tests: Add framework for automated perf_event_attr tests Jiri Olsa
2012-10-30 23:01   ` Jiri Olsa
2012-10-31 14:26     ` Arnaldo Carvalho de Melo
2012-10-31 14:52       ` [PATCHv2 " Jiri Olsa
2012-11-02  2:18         ` Namhyung Kim
2012-11-02 10:40           ` Jiri Olsa
2012-11-05 14:29             ` Arnaldo Carvalho de Melo
2012-11-05 14:41               ` Jiri Olsa
2012-11-14  6:40         ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 04/25] perf tests: Add attr record basic test Jiri Olsa
2012-11-14  6:52   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 05/25] perf tests: Add attr record group test Jiri Olsa
2012-11-14  6:54   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 06/25] perf tests: Add attr record event syntax " Jiri Olsa
2012-11-14  6:55   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 07/25] perf tests: Add attr record freq test Jiri Olsa
2012-11-14  6:56   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 08/25] perf tests: Add attr record count test Jiri Olsa
2012-11-14  6:57   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 09/25] perf tests: Add attr record graph test Jiri Olsa
2012-11-14  6:58   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 10/25] perf tests: Add attr record period test Jiri Olsa
2012-11-14  6:59   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 11/25] perf tests: Add attr record no samples test Jiri Olsa
2012-11-14  7:00   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 12/25] perf tests: Add attr record no-inherit test Jiri Olsa
2012-11-14  7:01   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 13/25] perf tests: Add attr record data test Jiri Olsa
2012-11-14  7:10   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 14/25] perf tests: Add attr record raw test Jiri Olsa
2012-11-14  7:11   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 15/25] perf tests: Add attr record no delay test Jiri Olsa
2012-11-14  7:12   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 16/25] perf tests: Add attr record branch any test Jiri Olsa
2012-11-14  7:13   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 17/25] perf tests: Add attr record branch filter tests Jiri Olsa
2012-11-14  7:14   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:01 ` [PATCH 18/25] perf tests: Add attr stat basic test Jiri Olsa
2012-10-30 22:02 ` [PATCH 19/25] perf tests: Add attr stat no-inherit test Jiri Olsa
2012-11-14  7:15   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:02 ` [PATCH 20/25] perf tests: Add attr stat group test Jiri Olsa
2012-11-14  7:16   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:02 ` [PATCH 21/25] perf tests: Add attr stat event syntax " Jiri Olsa
2012-11-14  7:18   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:02 ` [PATCH 22/25] perf tests: Add attr stat default test Jiri Olsa
2012-11-14  7:19   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:02 ` [PATCH 23/25] " Jiri Olsa
2012-11-14  7:20   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:02 ` [PATCH 24/25] perf tests: Add attr tests under builtin test command Jiri Olsa
2012-11-14  6:53   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-10-30 22:02 ` [PATCH 25/25] perf tests: Add documentation for attr tests Jiri Olsa
2012-11-14  7:21   ` [tip:perf/core] " tip-bot for Jiri Olsa
2012-11-01 20:38 ` [PATCH 00/25] perf test: Add perf_event_attr tests Arnaldo Carvalho de Melo
2012-11-01 23:20   ` Jiri Olsa
2012-11-02  1:25     ` Namhyung Kim
2012-11-02  2:23       ` Namhyung Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3u44vw6.fsf@sejong.aot.lge.com \
    --to=namhyung@kernel.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@ghostprotocols.net \
    --cc=cjashfor@linux.vnet.ibm.com \
    --cc=fweisbec@gmail.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.