1. 26 Mar, 2015 5 commits
    • Arnaldo Carvalho de Melo's avatar
      perf trace: Fix syscall enter formatting bug · 6ebad5c1
      Arnaldo Carvalho de Melo authored
       commit e596663e
       Author: Arnaldo Carvalho de Melo <acme@redhat.com>
       Date:   Fri Feb 13 13:22:21 2015 -0300
      
          perf trace: Handle multiple threads better wrt syscalls being intermixed
      
      Introduced a bug where it considered the number of bytes output directly
      to the output file when formatting the syscall entry buffer that is
      stored to be finally printed at syscall exit, ending up leaving garbage
      at the start of syscalls that appeared while another syscall was being
      processed, in another thread. Fix it.
      
      Example of garbage in the output before this patch:
      
       4280.102 (  0.000 ms): lsmd/763  ... [continued]: select()) = 0 Timeout
       4280.107 (275.250 ms): tuned/852 select(tvp: 0x7f41f7ffde50        ) ...
       4280.109 (  0.002 ms): lsmd/763 Xl��                                ) = -10
       4639.197 (  0.000 ms): systemd-journa/542  ... [continued]: epoll_wait()) = 1
       4639.202 (359.088 ms): lsmd/763 select(n: 6, inp: 0x7ffff21daad0, tvp: 0x7ffff21daac0) ...
       4639.207 (  0.005 ms): systemd-journa/542 Hn��                      ) = 106
       4639.221 (  0.002 ms): systemd-journa/542 uname(name: 0x7ffdbaed8e00) = 0
       4639.271 (  0.008 ms): systemd-journa/542 ftruncate(fd: 11</run/log/journal/60cd52417cf440a4a80107518bbd3c20/system.journal>, length: 50331648) = 0
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Don Zickus <dzickus@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-9ckfe8mvsedgkg6y80gz1ul8@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      6ebad5c1
    • David Ahern's avatar
      perf tools: Set JOBS based on CPU or processor · 6428c59a
      David Ahern authored
      Number of JOBS to use is set automatically to the number of processors found
      in /proc/cpuinfo. SPARC uses 'CPU' lines rather than 'processor'. Update the
      check in perf's Makefile to work for SPARC.
      Signed-off-by: default avatarDavid Ahern <david.ahern@oracle.com>
      Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: http://lkml.kernel.org/r/1427213455-127249-1-git-send-email-david.ahern@oracle.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      6428c59a
    • David Ahern's avatar
      perf: Bump max number of cpus to 1024 · 4d255766
      David Ahern authored
      SPARC based systems currently support up to 1024 cpus (e.g. T5-8).
      Allow perf to work on those systems.
      Signed-off-by: default avatarDavid Ahern <david.ahern@oracle.com>
      Link: http://lkml.kernel.org/r/1427213438-127216-1-git-send-email-david.ahern@oracle.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      4d255766
    • Arnaldo Carvalho de Melo's avatar
      perf evlist: Return the first evsel with an invalid filter in apply_filters() · 23d4aad4
      Arnaldo Carvalho de Melo authored
      Use of a bad filter currently generates the message:
       Error: failed to set filter with 22 (Invalid argument)
      
      Add the event name to make it clear to which event the filter
      failed to apply:
        Error: Failed to set filter "foo" on event sched:sg_lb_stats: 22: Invalid argument
      
      To test it use something like:
      
       # perf record -e sched:sched_switch -e sched:*fork --filter parent_pid==1 -e sched:*wait* --filter bla usleep 1
        Error: failed to set filter "bla" on event sched:sched_stat_iowait with 22 (Invalid argument)
       #
      Based-on-a-patch-by: default avatarDavid Ahern <dsahern@gmail.com>
      Acked-by: default avatarDavid Ahern <dsahern@gmail.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: Don Zickus <dzickus@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-d7gq2fjvaecozp9o2i0siifu@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      23d4aad4
    • David Ahern's avatar
      perf timechart: Fix SIBGUS error on sparc64 · e94eedab
      David Ahern authored
      perf timechart -T on sparc64 is terminating due to SIGBUS. Backtrace:
      
      Program received signal SIGBUS, Bus error.
      0x0000000000173d7c in perf_evsel__intval (evsel=<value optimized out>, sample=0x7feffffda28, name=0x289b28 "prev_state")
          at util/evsel.c:1918
      1918	util/evsel.c: No such file or directory.
      	in util/evsel.c
      Missing separate debuginfos, use: debuginfo-install audit-libs-2.3.7-1.0.1.el6.sparc64 bzip2-libs-1.0.5-7.el6_0.sparc64 elfutils-libelf-0.155-2.0.3.el6.sparc64 elfutils-libs-0.155-2.0.3.el6.sparc64 glibc-2.12-1.132.0.8.el6_5.sparc64 numactl-2.0.7-8.el6.sparc64 python-libs-2.6.6-52.0.2.el6.sparc64 slang-2.2.1-1.el6.sparc64 xz-libs-4.999.9-0.3.beta.20091007git.el6.sparc64 zlib-1.2.3-29.el6.sparc64
      (gdb) bt
      0  0x0000000000173d7c in perf_evsel__intval (evsel=<value optimized out>, sample=0x7feffffda28,
          name=0x289b28 "prev_state") at util/evsel.c:1918
      1  0x0000000000123b94 in process_sample_sched_switch (tchart=0x7feffffe040, evsel=0x4ca850, sample=0x7feffffda28,
          backtrace=0xc39010 "") at builtin-timechart.c:627
      2  0x0000000000122828 in process_sample_event (tool=0x7feffffe040, event=<value optimized out>, sample=0x7feffffda28,
          evsel=0x4ca850, machine=0x4c9c88) at builtin-timechart.c:569
      
      Another extended load on unaligned pointer. As before fix by copying to
      a temporary variable using memcpy.
      Signed-off-by: default avatarDavid Ahern <david.ahern@oracle.com>
      Link: http://lkml.kernel.org/r/1427228049-51893-1-git-send-email-david.ahern@oracle.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      e94eedab
  2. 24 Mar, 2015 19 commits
  3. 23 Mar, 2015 7 commits
  4. 22 Mar, 2015 2 commits
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo-2' of... · 963a70b8
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo-2' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
        - Handle legacy syscalls tracepoints (David Ahern, Arnaldo Carvalho de Melo)
      
        - Indicate which callchain entries are annotated in the
          TUI hists browser (report/top) (Arnaldo Carvalho de Melo)
      
        - Fix failure to add multiple probes without debuginfo (He Kuang)
      
        - Fix 'trace' summary_only option (David Ahern)
      
        - Fix race in build_id_cache__add_s() in 'buildid-cache' (Milos Vyletel)
      
        - Don't allow empty argument for field-separator, fixing segfault (Wang Nan)
      
      Infrastructure:
      
        - Add destructor for format_field in libtraceevent (David Ahern)
      
        - Prep work for support lzma compressed kernel modules (Jiri Olsa)
      
        - Update .gitignore with recently added/renamed feature detection files (Yunlong Song)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      963a70b8
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · 08b3f913
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      User visible changes:
      
        - Bash completion for subcommands (Yunlong Song)
      
        - Allow annotating entries in callchains in the hists browser (top/report).
          TODO: give some visual cue to what entries in callchains have samples and thus
          can be annotated and/or allow showing the source code for functions without
          samples (Arnaldo Carvalho de Melo)
      
        - Don't allow empty argument for '-t' in perf report, fixing segfault (Wang Nan)
      
      Infrastructure:
      
        - Prep work for moving the perf feature tests build system to tools/build (Jiri Olsa)
      
        - Fix perf-read-vdsox32 not building and lib64 install dir (H.J. Lu)
      
        - ARM64: fix building error and eh/debug frame offset cache fixes (Wang Nan)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      08b3f913
  5. 21 Mar, 2015 7 commits