)]}'
{
  "commit": "5622c07b4741e0afd7607bce6e850b76eeb23210",
  "tree": "bbd2aa4459baf10ef88aef17fc5b55abaf451ce0",
  "parents": [
    "afda0f94483f46a4caddb529b8f95e0aaf015de6"
  ],
  "author": {
    "name": "Stephane Eranian",
    "email": "eranian@google.com",
    "time": "Fri Apr 27 14:45:38 2012 +0200"
  },
  "committer": {
    "name": "Arnaldo Carvalho de Melo",
    "email": "acme@redhat.com",
    "time": "Tue May 01 14:20:00 2012 -0300"
  },
  "message": "perf stat: Fix case where guest/host monitoring is not supported by kernel\n\nBy default, perf stat sets exclude_guest \u003d 1. But when you run perf on a\nkernel which does not support  host/guest filtering, then you get an\nerror saying the event in unsupported. This comes from the fact that\nwhen the perf_event_attr struct passed by the user is larger than the\none known to the kernel there is safety check which ensures that all\nunknown bits are zero. But here, exclude_guest is 1 (part of the unknown\nbits) and thus the perf_event_open() syscall return EINVAL.\n\nTo my surprise, running perf record on the same kernel did not exhibit\nthe problem. The reason is that perf record handles the problem by\ncatching the error and retrying with guest/host excludes set to zero.\nFor some reason, this was not done with perf stat. This patch fixes this\nproblem.\n\nSigned-off-by: Stephane Eranian \u003ceranian@google.com\u003e\nCc: Gleb Natapov \u003cgleb@redhat.com\u003e\nCc: Ingo Molnar \u003cmingo@elte.hu\u003e\nCc: Joerg Roedel \u003cjoro@8bytes.org\u003e\nCc: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nCc: Robert Richter \u003crobert.richter@amd.com\u003e\nLink: http://lkml.kernel.org/r/20120427124538.GA7230@quad\nSigned-off-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c941bb640f4990f8590f8fb410dfaa0247bcc3b8",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-stat.c",
      "new_id": "4532a789fbe35978f827c0369897dadc636e6728",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-stat.c"
    }
  ]
}
