1. 28 5月, 2013 15 次提交
  2. 01 4月, 2013 7 次提交
  3. 27 3月, 2013 1 次提交
  4. 26 3月, 2013 2 次提交
    • S
      perf stat: Add per-core aggregation · 12c08a9f
      Stephane Eranian 提交于
      This patch adds the --per-core option to perf stat.
      
      This option is used to aggregate system-wide counts
      on a per physical core basis. On processors with
      hyperthreading, this means counts of all HT threads
      running on a physical core are aggregated.
      
      This mode is useful to find imblance between physical
      cores running an uniform workload. Cores are identified
      by socket: S0-C1, means physical core 1 on socket 0. Note
      that cores are identified using their physical core id,
      thus their numbering may not be continuous.
      
      Per core aggregation can be combined with interval printing:
      
       # perf stat -a --per-core -I 1000 -e cycles sleep 1000
       #           time core         cpus             counts events
            1.000090030 S0-C0           1          4,765,747 cycles
            1.000090030 S0-C1           1          5,580,647 cycles
            1.000090030 S0-C2           1            221,181 cycles
            1.000090030 S0-C3           1            266,092 cycles
      Signed-off-by: NStephane Eranian <eranian@google.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung.kim@lge.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1360846649-6411-4-git-send-email-eranian@google.com
      [ committer note: Remove parts already applied on 86ee6e18 to keep bisectability ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      12c08a9f
    • S
      perf stat: Refactor aggregation code · 86ee6e18
      Stephane Eranian 提交于
      Refactor aggregation code by introducing a single aggr_mode variable and an
      enum for aggregation.
      
      Also refactor cpumap code having to do with cpu to socket mappings. All in
      preparation for extended modes, such as cpu -> core.
      
      Also fix socket aggregation and ensure that sockets are printed in increasing
      order.
      Signed-off-by: NStephane Eranian <eranian@google.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung.kim@lge.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1360846649-6411-2-git-send-email-eranian@google.com
      [ committer note: Fixup conflicts with a7e191c3 "--repeat forever" and
        acf28922 "Use perf_evlist__prepare/start_workload()" ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      86ee6e18
  5. 22 3月, 2013 10 次提交
  6. 16 3月, 2013 5 次提交