1. 15 11月, 2016 3 次提交
    • J
      perf report: Add branch flag to callchain cursor node · 410024db
      Jin Yao 提交于
      Since the branch ip has been added to call stack for easier browsing,
      this patch adds more branch information. For example, add a flag to
      indicate if this ip is a branch, and also add with the branch flag.
      
      Then we can know if the cursor node represents a branch and know what
      the branch flag it has.
      
      The branch history code has a loop detection pass that removes loops. It
      would be nice for knowing how many loops were removed then in next
      steps, we can compute out the average number of iterations.
      
      For example:
      
      Before remove_loops(),
      entry0: from = 0x100, to = 0x200
      entry1: from = 0x300, to = 0x250
      entry2: from = 0x300, to = 0x250
      entry3: from = 0x300, to = 0x250
      entry4: from = 0x700, to = 0x800
      
      After remove_loops()
      entry0: from = 0x100, to = 0x200
      entry1: from = 0x300, to = 0x250
      entry2: from = 0x700, to = 0x800
      
      The original entry2 and entry3 are removed. So the number of iterations
      (from = 0x300, to = 0x250) is equal to removed number + 1 (2 + 1).
      
      iterations = removed number + 1;
      average iteractions = Sum(iteractions) / number of samples
      
      This formula ignores other cases, for example, iterations cross multiple
      buffers and one buffer contains 2+ loops. Because in practice, it's good
      enough.
      Signed-off-by: NYao Jin <yao.jin@linux.intel.com>
      Acked-by: NAndi Kleen <ak@linux.intel.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@intel.com>
      Cc: Linux-kernel@vger.kernel.org
      Cc: Yao Jin <yao.jin@linux.intel.com>
      Link: http://lkml.kernel.org/n/1477876794-30749-2-git-send-email-yao.jin@linux.intel.com
      [ Renamed 'iter' to 'nr_loop_iter' for clarity ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      410024db
    • T
      perf config: Mark where are config items from (user or system) · 08d090cf
      Taeung Song 提交于
      To write config items to a particular config file, we should know where
      is each config section and item from.
      
      Current setting functionality of perf-config use autogenerating way by
      overwriting collected config items to a config file.
      
      For example, when collecting config items from user and system config
      files (i.e. ~/.perfconfig and $(sysconf)/perfconfig), perf_config_set
      can contain both user and system config items.  So we should know where
      each value is from to avoid merging user and system config items on user
      config file.
      Signed-off-by: NTaeung Song <treeze.taeung@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Nambong Ha <over3025@gmail.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Cc: Wookje Kwon <aweee0@gmail.com>
      Link: http://lkml.kernel.org/r/1478241862-31230-7-git-send-email-treeze.taeung@gmail.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      08d090cf
    • T
      perf config: Add support setting variables in a config file · c6fc018a
      Taeung Song 提交于
      Add setting feature that can add config variables with their values to a
      config file (i.e. user or system config file) or modify config key-value
      pairs in a config file.  For the syntax examples:
      
          perf config [<file-option>] [section.name[=value] ...]
      
      e.g. You can set the ui.show-headers to false with
      
          # perf config ui.show-headers=false
      
      If you want to add or modify several config items, you can do like
      
          # perf config annotate.show_nr_jumps=false kmem.default=slab
      
      Committer notes:
      
      Testing it:
      
        $ perf config -l
        top.children=true
        report.children=false
        $
        $ perf config top.children=false
        $ perf config -l
        top.children=false
        report.children=false
        $
        $ perf config kmem.default=slab
        $ perf config -l
        top.children=false
        report.children=false
        kmem.default=slab
        $
      Signed-off-by: NTaeung Song <treeze.taeung@gmail.com>
      Tested-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Nambong Ha <over3025@gmail.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Cc: Wookje Kwon <aweee0@gmail.com>
      Link: http://lkml.kernel.org/r/1478241862-31230-5-git-send-email-treeze.taeung@gmail.com
      [ Combined patch with docs update with this one ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      c6fc018a
  2. 14 11月, 2016 4 次提交
  3. 12 11月, 2016 1 次提交
  4. 08 11月, 2016 1 次提交
  5. 28 10月, 2016 7 次提交
  6. 26 10月, 2016 2 次提交
  7. 25 10月, 2016 4 次提交
  8. 24 10月, 2016 18 次提交