1. 11 8月, 2015 4 次提交
  2. 10 8月, 2015 2 次提交
  3. 09 8月, 2015 2 次提交
  4. 07 8月, 2015 28 次提交
  5. 06 8月, 2015 4 次提交
    • M
      perf trace: Add total time column to summary. · 834fd46d
      Milian Wolff 提交于
      It is cumbersome to manually calculate the total time spent in a given
      syscall by multiplying the average value with the number of calls.
      
      Instead, we now do this directly inside perf trace.
      
      Note that this is also done by 'strace', which even adds a column with
      relative numbers - something we could do in the future.
      
      Example:
      
        perf trace -s find /some/folder > /dev/null
      
         Summary of events:
      
         find (19976), 700123 events, 100.0%, 0.000 msec
      
           syscall            calls    total       min       avg       max      stddev
                                       (msec)    (msec)    (msec)    (msec)        (%)
           --------------- -------- --------- --------- --------- ---------     ------
           read                   4     0.006     0.001     0.002     0.003     27.42%
           write               8046     9.617     0.001     0.001     0.035      0.56%
           open               34196    40.384     0.001     0.001     0.071      0.30%
           close              68375    57.104     0.001     0.001     0.076      0.25%
           stat                   4     0.004     0.001     0.001     0.001      3.14%
           fstat              34189    27.518     0.001     0.001     0.060      0.34%
           mmap                  13     0.029     0.001     0.002     0.003     10.74%
           mprotect               6     0.018     0.002     0.003     0.005     17.04%
           munmap                 3     0.014     0.003     0.005     0.006     24.87%
           brk                   87     0.490     0.001     0.006     0.016      6.50%
           ioctl                  3     0.004     0.001     0.001     0.003     36.39%
           access                 1     0.004     0.004     0.004     0.004      0.00%
           uname                  1     0.001     0.001     0.001     0.001      0.00%
           getdents           68393   143.600     0.001     0.002     0.187      0.95%
           fchdir             68371    56.980     0.001     0.001     0.111      0.39%
           arch_prctl             1     0.001     0.001     0.001     0.001      0.00%
           openat             34184    41.737     0.001     0.001     0.102      0.41%
           newfstatat         34184    41.180     0.001     0.001     0.064      0.34%
      Signed-off-by: NMilian Wolff <milian.wolff@kdab.com>
      Tested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      LPU-Reference: 1438853069-5902-1-git-send-email-milian.wolff@kdab.com
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      834fd46d
    • P
      perf tools: Fix build errors with mipsel-linux-uclibc compiler · f151f53a
      Petri Gynther 提交于
      linux/tools$ make ARCH=mips CROSS_COMPILE=mipsel-linux- perf
      ...
      config/Makefile:256: *** No gnu/libc-version.h found, please install
      glibc-dev[el].  Stop.
      make[1]: *** [all] Error 2
      make: *** [perf] Error 2
      
      ...
      In file included from builtin-sched.c:13:0:
      util/cloexec.h:8:12: error: redundant redeclaration of ‘sched_getcpu’
       [-Werror=redundant-decls]
       extern int sched_getcpu(void) __THROW;
      
      mipsel-buildroot-linux-uclibc/sysroot/usr/include/bits/sched.h:88:12:
       note: previous declaration of ‘sched_getcpu’ was here
       extern int sched_getcpu (void) __THROW;
      
      uclibc info:
      sysroot/usr/include/bits/uClibc_config.h
      __UCLIBC_MAJOR__ 0
      __UCLIBC_MINOR__ 9
      __UCLIBC_SUBLEVEL__ 33
      
      sysroot/usr/include/features.h
      __UCLIBC__ 1
      __GLIBC__ 2
      __GLIBC_MINOR__ 2
      Signed-off-by: NPetri Gynther <pgynther@google.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1438735081-24131-1-git-send-email-pgynther@google.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f151f53a
    • M
      perf trace: Write to stderr by default · 007d66a0
      Milian Wolff 提交于
      Without this patch, it is cumbersome to read the trace output but
      ignoring the normal, potentially verbose, output of the debuggee.  One
      common example is doing something like the following:
      
       perf trace -s find /tmp > /dev/null
      
      Without this patch, the trace summary will be lost. Now, it will still
      be printed at the end. This behavior is also applied by strace.
      
      Cc: Milian Wolff <milian.wolff@kdab.com>
      Cc: David Ahern <dsahern@gmail.com>
      Link: http://lkml.kernel.org/n/tip-tqnks6y2cnvm5f9g2dsfr7zl@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      007d66a0
    • A
      perf tools: Do not include escape sequences in color_vfprintf return · b7a001d2
      Andi Kleen 提交于
      color_vprintf was including the length of the invisible escape sequences
      in its return argument. Don't include them to make the return value
      usable for indentation calculations.
      
      v2: Add comment, rebase
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/1438649408-20807-3-git-send-email-andi@firstfloor.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      b7a001d2