1. 27 6月, 2017 13 次提交
  2. 22 6月, 2017 1 次提交
    • I
      Merge tag 'perf-core-for-mingo-4.13-20170621' of... · 8e70e840
      Ingo Molnar 提交于
      Merge tag 'perf-core-for-mingo-4.13-20170621' 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:
      
      New features:
      
       - Add support to measure SMI cost in 'perf stat' (Kan Liang)
      
       - Add support for unwinding callchains in powerpc with libdw (Paolo Bonzini)
      
      Fixes:
      
       - Fix message: cpu list option is -C not -c (Adrian Hunter)
      
       - Fix 'perf script' message: field list option is -F not -f (Adrian Hunter)
      
       - Intel PT fixes: (Adrian Hunter)
      
         o Fix missing stack clear
         o Ensure IP is zero when state is INTEL_PT_STATE_NO_IP
         o Fix last_ip usage
         o Ensure never to set 'last_ip' when packet 'count' is zero
         o Clear FUP flag on error
         o Fix transactions_sample_type
      
      Infrastructure changes:
      
       - Intel PT cleanups/refactorings (Adrian Hunter)
      
         o Use FUP always when scanning for an IP
         o Add missing __fallthrough
         o Remove redundant initial_skip checks
         o Allow decoding with branch tracing disabled
         o Add default config for pass-through branch enable
         o Add documentation for new config terms
         o Add decoder support for ptwrite and power event packets
         o Add reserved byte to CBR packet payload
         o Add decoder support for CBR events
      
       - Move  find_process() to the only place that uses it, skimming some
         more fat from util.[ch] (Arnaldo Carvalho de Melo)
      
       - Do parameter validation earlier on fetch_kernel_version() (Arnaldo Carvalho de Melo)
      
       - Remove unused _ALL_SOURCE define (Arnaldo Carvalho de Melo)
      
       - Add sysfs__write_int function (Kan Liang)
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      8e70e840
  3. 21 6月, 2017 22 次提交
  4. 20 6月, 2017 4 次提交
    • A
      perf tools: Remove unused _ALL_SOURCE define · fd25bf8b
      Arnaldo Carvalho de Melo 提交于
      Curious as to what this was for I looked at /usr/include/ and only some
      python headers define this, and it ends up being to enable "extensions"
      on some old OSes:
      
        /* Enable extensions on AIX 3, Interix */
      
      I guess we can remove this one safely.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-omnundlxo2brs552bdl6m0j1@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      fd25bf8b
    • A
      perf tools: Do parameter validation earlier on fetch_kernel_version() · 44b58e06
      Arnaldo Carvalho de Melo 提交于
      While trying to reduce util.[ch] I noticed that fetch_kernel_version()
      and fetch_ubuntu_kernel_version() do lots of operations only to check if
      they are needed, i.e. it checks if the pointer where to return the
      kernel version is NULL only after obtaining the kernel version from
      /proc/version_signature or by parsing the results from uname().
      
      Do it earlier not to confuse people reading this code in the future :-)
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-i94qwyekk4tzbu0b9ce1r1mz@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      44b58e06
    • A
      perf evsel: Adopt find_process() · 2157f6ee
      Arnaldo Carvalho de Melo 提交于
      And make it static, nobody else uses it, if we ever need it in more
      places we can carve a new source file for process related methods,
      for now lets reduce util.{c,h} a tad more.
      
      Link: http://lkml.kernel.org/n/tip-zgb28rllvypjibw52aaz9p15@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      2157f6ee
    • I
      Merge tag 'perf-core-for-mingo-4.13-20170719' of... · 007b811b
      Ingo Molnar 提交于
      Merge tag 'perf-core-for-mingo-4.13-20170719' 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:
      
      - Allow adding and removing fields to the default 'perf script' columns,
        using + or - as field prefixes to do so (Andi Kleen)
      
      - Display titles in left frame in the annotate browser (Jin Yao)
      
      - Allow resolving the DSO name with 'perf script -F brstack{sym,off},dso'
        (Mark Santaniello)
      
      - Support function filtering in 'perf ftrace' (Namhyung Kim)
      
      - Allow specifying function call depth in 'perf ftrace' (Namhyumg Kim)
      
      Infrastructure changes:
      
      - Adopt __noreturn, __printf, __scanf, noinline, __packed and __aligned
        __alignment__(()) markers, to make the tools/ source code base to be
        more compact and look more like kernel code (Arnaldo Carvalho de Melo)
      
      - Remove unnecessary check in annotate_browser_write() (Jin Yao)
      
      - Return arch from symbol__disassemble() so that callers, such as
        the annotate TUI browser to use arch specific formattings, such
        as the upcoming instruction micro-op fusion on Intel Core (Jin Yao)
      
      - Remove superfluous check before use in the coresight code base (Kim
        Phillips)
      
      - Remove unused SAMPLE_SIZE defines and BTS priv array (Kim Phillips)
      
      - Error handling fix/tidy ups in 'perf config' (Taeung Song)
      
      - Avoid error in the BPF proggie built with clang in 'perf test llvm'
        when PROFILE_ALL_BRANCHES is set (Wang Nan)
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      007b811b