)]}'
{
  "commit": "6be2850effd6a8bae11d623c8c52e88d2fbc0e96",
  "tree": "f8a2e34dc16a8e79e87b4c3fbe420c2346343cf1",
  "parents": [
    "d6dc0b4ead6e8720096ecfa3d9e899b47ddbc8ed"
  ],
  "author": {
    "name": "Zhang, Yanmin",
    "email": "yanmin_zhang@linux.intel.com",
    "time": "Thu Mar 18 11:36:03 2010 -0300"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Thu Mar 18 16:21:11 2010 +0100"
  },
  "message": "perf stat: Enable counters when collecting process-wide or system-wide data\n\nCommand \u0027perf stat\u0027 doesn\u0027t enable counters when collecting an\nexisting (by -p) process or system-wide statistics. Fix the\nissue.\n\nChange the condition of fork/exec subcommand. If there is a\nsubcommand parameter, perf always forks/execs it. The usage\nexample is:\n\n # perf stat -a sleep 10\n\nSo this command could collect statistics for 10 seconds\nprecisely. User still could stop it by CTRL+C. Without the new\ncapability, user could only use CTRL+C to stop it without\nprecise time clock.\n\nAnother issue is \u0027perf stat -a\u0027 consumes 100% time of a full\nsingle logical cpu. It has a bad impact on running workload.\n\nFix it by adding a sleep(1) in the while(!done) loop in function\nrun_perf_stat.\n\nSigned-off-by: Zhang Yanmin \u003cyanmin_zhang@linux.intel.com\u003e\nSigned-off-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\nCc: Avi Kivity \u003cavi@redhat.com\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Sheng Yang \u003csheng@linux.intel.com\u003e\nCc: Marcelo Tosatti \u003cmtosatti@redhat.com\u003e\nCc: Joerg Roedel \u003cjoro@8bytes.org\u003e\nCc: Jes Sorensen \u003cJes.Sorensen@redhat.com\u003e\nCc: Gleb Natapov \u003cgleb@redhat.com\u003e\nCc: Zachary Amsden \u003czamsden@redhat.com\u003e\nCc: \u003czhiteng.huang@intel.com\u003e\nLKML-Reference: \u003c1268922965-14774-1-git-send-email-acme@infradead.org\u003e\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "95db31cff6fdbb63e714dc0725998d7ef76103ea",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-stat.c",
      "new_id": "5f41244cbbf2d5ce0f506f7b474a98c6db666628",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-stat.c"
    }
  ]
}
