1. 02 3月, 2015 1 次提交
  2. 17 1月, 2014 1 次提交
  3. 28 11月, 2013 1 次提交
  4. 14 10月, 2013 2 次提交
  5. 11 10月, 2013 1 次提交
    • I
      tools: Harmonize the various build messages in perf, lib-traceevent, lib-lk · 65fb0992
      Ingo Molnar 提交于
      The various build lines from libtraceevent and perf mix up during a
      parallel build and produce unaligned output like:
      
          CC builtin-buildid-list.o
          CC builtin-buildid-cache.o
          CC builtin-list.o
        CC FPIC            trace-seq.o
          CC builtin-record.o
        CC FPIC            parse-filter.o
          CC builtin-report.o
          CC builtin-stat.o
        CC FPIC            parse-utils.o
        CC FPIC            kbuffer-parse.o
          CC builtin-timechart.o
          CC builtin-top.o
          CC builtin-script.o
        BUILD STATIC LIB   libtraceevent.a
          CC builtin-probe.o
          CC builtin-kmem.o
          CC builtin-lock.o
      
      To solve this, harmonize all the build message alignments to be similar
      to the kernel's kbuild output: prefixed by two spaces and 11-char wide.
      
      After the patch the output looks pretty tidy, even if output lines get
      mixed up:
      
        CC      builtin-annotate.o
        FLAGS:  * new build flags or cross compiler
        CC      builtin-bench.o
        AR      liblk.a
        CC      bench/sched-messaging.o
        CC FPIC event-parse.o
        CC      bench/sched-pipe.o
        CC FPIC trace-seq.o
        CC      bench/mem-memcpy.o
        CC      bench/mem-memset.o
        CC FPIC parse-filter.o
        CC      builtin-diff.o
        CC      builtin-evlist.o
        CC      builtin-help.o
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1381312169-17354-3-git-send-email-mingo@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      65fb0992
  6. 09 10月, 2013 8 次提交
    • I
      tools/perf/build: Fix non-canonical directory names in O= · b102420b
      Ingo Molnar 提交于
      This was a long-standing bug, relative pathnames like O=dir did not fully
      work in the build system:
      
          $ make O=localdir clean
      
          SUBDIR Documentation
          ../../scripts/Makefile.include:3: *** O=localdir does not exist.  Stop.
          make[1]: *** [clean] Error 2
          make: *** [clean] Error 2
      
      Fix this by canonizing the directory before passing it to Makefile.perf.
      
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-hchMp1hozn9tqgswWcooxcru@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      b102420b
    • I
      tools/perf/build: Exclude MAKEFLAGS from nested invocation · 684f434c
      Ingo Molnar 提交于
      In case the user specifies MAKEFLAGS as an environment variable,
      or uses 'make -jN' explicitly, the options can conflict and result in:
      
          BUILD: Doing 'make -j8' parallel build
          make[1]: warning: -jN forced in submake: disabling jobserver mode.
          GEN common-cmds.h
          make[1]: *** write jobserver: Bad file descriptor.  Stop.
      
      Make sure we invoke the main makefile in a pristine state.
      
      Users who want to do something non-standard can use the:
      
        make -f Makefile.perf
      
      method to invoke the makefile.
      
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-uen6hzTvkqqngqwjma9yoEgw@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      684f434c
    • I
      tools/perf/build: Pass through all targets to Makefile.perf · b016a0dd
      Ingo Molnar 提交于
      Jiri reported that 'make .o' stopped working:
      
        > [jolsa@krava perf]$ make -f Makefile perf.o
        > cc    -c -o perf.o perf.c
        > In file included from builtin.h:4:0,
        >                  from perf.c:9:
        > util/util.h:74:24: fatal error: lk/debugfs.h: No such file or directory
        > compilation terminated.
        > make: *** [perf.o] Error 1
      
      This is due to GNU make having built-in rules for popular targets such
      as *.o. Clear them out so that all targets as passed through to Makefile.perf.
      Reported-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Link: http://lkml.kernel.org/n/tip-5wkuvmlaaxtfgepKcvRij8sh@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      b016a0dd
    • I
      tools/perf/build: Standardize the various messages output by parallel make · 73a725f0
      Ingo Molnar 提交于
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-mky0rtpwxi3ivxsvdjoOEmhr@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      73a725f0
    • I
      tools/perf/build: Flip Makefile.parallel and Makefile.perf · bd69cc28
      Ingo Molnar 提交于
      To make it more apparent that there is not change in functionality we introduced
      Makefile.parallel separately and now flip it with the main Makefile, which
      moves into Makefile.perf.
      
      The renames are:
      
         Makefile.parallel => Makefile
         Makefile          => Makefile.perf
      
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-igRfuw9ugbnnpixLd6wpptzl@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      bd69cc28
    • I
      tools/perf/build: Invoke feature-checks 'clean' target from the main Makefile · de0f03fb
      Ingo Molnar 提交于
      config/Makefile is not included for the 'clean' target, so invoke the
      config/feature-checks/Makefile 'clean' target from Makefile.perf.
      
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-sh2cGvmsjbrazarlqre7pVwt@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      de0f03fb
    • I
      tools/perf/build: Speed up the final link · c9404c66
      Ingo Molnar 提交于
      libtraceevent.a and liblk.a rules have always-missed dependencies,
      which causes python.so to be relinked at every build attempt - even
      if none of the affected code changes.
      
      This slows down re-builds unnecessarily, by adding more than a second
      to the build time:
      
        comet:~/tip/tools/perf> time make
      
        ...
      
          SUBDIR /fast/mingo/tip/tools/lib/lk/
          make[1]: `liblk.a' is up to date.
          SUBDIR /fast/mingo/tip/tools/lib/traceevent/
          LINK perf
          GEN python/perf.so
      
        real    0m1.701s
        user    0m1.338s
        sys     0m0.301s
      
      Add the (trivial) dependencies to not force a re-link.
      
      This speeds up an empty re-build enormously:
      
        comet:~/tip/tools/perf> time make
      
        ...
      
        real    0m0.207s
        user    0m0.134s
        sys     0m0.028s
      
      [ This adds some coupling between the build dependencies of
        libtraceevent and liblk - but until those stay relatively
        simple this should not be an issue. ]
      
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-wvmlrurufuk6mo1ovtNigguT@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      c9404c66
    • I
      tools/perf/build: Speed up git-version test on re-make · c72e3f04
      Ingo Molnar 提交于
      util/PERF-VERSION-GEN is currently executed on every build attempt,
      and this script can take a lot of time on trees that are at a
      significant git-distance from Linus's tree:
      
        $ time util/PERF-VERSION-GEN
      
        real    0m4.343s
        user    0m4.176s
        sys     0m0.140s
      
      It also takes a lot of time if the Git repository is network attached, etc.,
      because the commands it uses:
      
              TAG=$(git describe --abbrev=0 --match "v[0-9].[0-9]*" 2>/dev/null )
      
      has to count commits from the nearest tag and thus has to access (and
      decompress) every git commit blob on the relevant version path.
      
      Even on Linus's tree it takes 0.28 seconds on a fast box to count all the
      commits and get the git version string:
      
        $ time util/PERF-VERSION-GEN
      
        real    0m0.279s
        user    0m0.247s
        sys     0m0.025s
      
      But the version string only has to be regenerated if the git repository's
      head commit changes. So add a dependency of ../../.git/HEAD and touch
      the file every time it's regenerated, so that Make's build rules can
      pick it up and cache the result:
      
        make: `PERF-VERSION-FILE' is up to date.
      
        real    0m0.184s
        user    0m0.117s
        sys     0m0.026s
      
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-wvmlrurufuk6mo1ovtNigguT@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      c72e3f04
  7. 05 10月, 2013 1 次提交
  8. 06 9月, 2013 1 次提交
  9. 03 9月, 2013 1 次提交
  10. 30 8月, 2013 2 次提交
  11. 27 8月, 2013 1 次提交
  12. 08 8月, 2013 1 次提交
  13. 23 7月, 2013 1 次提交
  14. 22 7月, 2013 1 次提交
    • K
      perf tools: Fix build with perl 5.18 · 575bf1d0
      Kirill A. Shutemov 提交于
      perl.h from new Perl release doesn't like -Wundef and -Wswitch-default:
      
      /usr/lib/perl5/core_perl/CORE/perl.h:548:5: error: "SILENT_NO_TAINT_SUPPORT" is not defined [-Werror=undef]
       #if SILENT_NO_TAINT_SUPPORT && !defined(NO_TAINT_SUPPORT)
           ^
      /usr/lib/perl5/core_perl/CORE/perl.h:556:5: error: "NO_TAINT_SUPPORT" is not defined [-Werror=undef]
       #if NO_TAINT_SUPPORT
           ^
      In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3471:0,
                       from util/scripting-engines/trace-event-perl.c:30:
      /usr/lib/perl5/core_perl/CORE/sv.h:1455:5: error: "NO_TAINT_SUPPORT" is not defined [-Werror=undef]
       #if NO_TAINT_SUPPORT
           ^
      In file included from /usr/lib/perl5/core_perl/CORE/perl.h:3472:0,
                       from util/scripting-engines/trace-event-perl.c:30:
      /usr/lib/perl5/core_perl/CORE/regexp.h:436:5: error: "NO_TAINT_SUPPORT" is not defined [-Werror=undef]
       #if NO_TAINT_SUPPORT
           ^
      In file included from /usr/lib/perl5/core_perl/CORE/hv.h:592:0,
                       from /usr/lib/perl5/core_perl/CORE/perl.h:3480,
                       from util/scripting-engines/trace-event-perl.c:30:
      /usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_siphash_2_4’:
      /usr/lib/perl5/core_perl/CORE/hv_func.h:222:3: error: switch missing default case [-Werror=switch-default]
         switch( left )
         ^
      /usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_superfast’:
      /usr/lib/perl5/core_perl/CORE/hv_func.h:274:5: error: switch missing default case [-Werror=switch-default]
           switch (rem) { \
           ^
      /usr/lib/perl5/core_perl/CORE/hv_func.h: In function ‘S_perl_hash_murmur3’:
      /usr/lib/perl5/core_perl/CORE/hv_func.h:398:5: error: switch missing default case [-Werror=switch-default]
           switch(bytes_in_carry) { /* how many bytes in carry */
           ^
      
      Let's disable the warnings for code which uses perl.h.
      Signed-off-by: NKirill A. Shutemov <kirill@shutemov.name>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1372063394-20126-1-git-send-email-kirill@shutemov.nameSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      575bf1d0
  15. 17 7月, 2013 1 次提交
    • R
      perf tools: Fix 'make tools/perf' · ab4ecda5
      Robert Richter 提交于
      Boris just raised another variant of building perf tools which is
      broken:
      
       $ make tools/perf
       ...
           LINK /home/robert/cx/linux/tools/perf/perf
       gcc: error: ../linux/tools/lib/lk/liblk.a: No such file or directory
      
      The variant wasn't considered by:
      
       107de372 perf tools: Fix build errors with O and DESTDIR make vars set
      
      There are other variant of building perf too:
      
       $ make -C tools perf
       $ make -C tools/perf
      
      Plus variants with O= and DESTDIR set.
      
      This patch fixes the above and was tested with the following:
      
       $ make O=... DESTDIR=... tools/perf
       $ make O=... DESTDIR=... -C tools/ perf
       $ make O=... DESTDIR=... -C tools/perf
       $ make tools/perf
       $ make -C tools/ perf
       $ make -C tools/perf
      Reported-by: NBorislav Petkov <bp@alien8.de>
      Signed-off-by: NRobert Richter <robert.richter@linaro.org>
      Signed-off-by: NRobert Richter <rric@kernel.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-tip-commits@vger.kernel.org
      Link: http://lkml.kernel.org/r/20130716145036.GH8731@rric.localhostSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      ab4ecda5
  16. 13 7月, 2013 1 次提交
  17. 09 7月, 2013 1 次提交
  18. 30 5月, 2013 7 次提交
  19. 29 5月, 2013 7 次提交