)]}'
{
  "commit": "005a8c62032b97dab231273dfd7dbdf4154f3ef6",
  "tree": "e81ca6723093a7b77c832c9d1d267290b115cd18",
  "parents": [
    "9985c7a522898950a3122eacf7796744be2a8f15"
  ],
  "author": {
    "name": "Andi Kleen",
    "email": "ak@linux.intel.com",
    "time": "Fri Jul 31 17:48:51 2015 -0700"
  },
  "committer": {
    "name": "Andi Kleen",
    "email": "ak@linux.intel.com",
    "time": "Mon Dec 14 17:55:54 2015 -0800"
  },
  "message": "perf, tools: Support metrics in --per-core/socket mode\n\nEnable metrics printing in --per-core / --per-socket mode. We need\nto save the shadow metrics in a unique place. Always use the first\nCPU in the aggregation. Then use the same CPU to retrieve the\nshadow value later.\n\nExample output:\n\n% perf stat --per-core -a ./BC1s\n\n Performance counter stats for \u0027system wide\u0027:\n\nS0-C0           2        2966.020381      task-clock (msec)         #    2.004 CPUs utilized            (100.00%)\nS0-C0           2                 49      context-switches          #    0.017 K/sec                    (100.00%)\nS0-C0           2                  4      cpu-migrations            #    0.001 K/sec                    (100.00%)\nS0-C0           2                467      page-faults               #    0.157 K/sec\nS0-C0           2      4,599,061,773      cycles                    #    1.551 GHz                      (100.00%)\nS0-C0           2      9,755,886,883      instructions              #    2.12  insn per cycle           (100.00%)\nS0-C0           2      1,906,272,125      branches                  #  642.704 M/sec                    (100.00%)\nS0-C0           2         81,180,867      branch-misses             #    4.26% of all branches\nS0-C1           2        2965.995373      task-clock (msec)         #    2.003 CPUs utilized            (100.00%)\nS0-C1           2                 62      context-switches          #    0.021 K/sec                    (100.00%)\nS0-C1           2                  8      cpu-migrations            #    0.003 K/sec                    (100.00%)\nS0-C1           2                281      page-faults               #    0.095 K/sec\nS0-C1           2          6,347,290      cycles                    #    0.002 GHz                      (100.00%)\nS0-C1           2          4,654,156      instructions              #    0.73  insn per cycle           (100.00%)\nS0-C1           2            947,121      branches                  #    0.319 M/sec                    (100.00%)\nS0-C1           2             37,322      branch-misses             #    3.94% of all branches\n\n       1.480409747 seconds time elapsed\n\nv2: Rebase to older patches\nSigned-off-by: Andi Kleen \u003cak@linux.intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "940b5f6af9e66cd055039262a2c08f2bb4692dc8",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-stat.c",
      "new_id": "c80cc64dbaaa5797e1c9cd6cd421612cb7bc3a4a",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-stat.c"
    }
  ]
}
