)]}'
{
  "commit": "c10edee2e1716f8cf217cf52ed01ae4742fcdf3c",
  "tree": "30d894124621ba13ea5e7e06050b99953a401b62",
  "parents": [
    "dd77038d233d106f297b907bf51459dfb1099eb1"
  ],
  "author": {
    "name": "Pekka Enberg",
    "email": "penberg@cs.helsinki.fi",
    "time": "Sun Nov 08 18:01:06 2009 +0200"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Sun Nov 08 17:04:54 2009 +0100"
  },
  "message": "perf tools: Fix permission checks\n\nThe perf_event_open() system call returns EACCES if the user is\nnot root which results in a very confusing error message:\n\n  $ perf record -A -a -f\n\n    Error: perfcounter syscall returned with -1 (Permission denied)\n\n    Fatal: No CONFIG_PERF_EVENTS\u003dy kernel support configured?\n\nIt turns out that\u0027s because perf tools are checking only for\nEPERM. Fix that up to get a much better error message:\n\n  $ perf record -A -a -f\n    Fatal: Permission error - are you root?\n\nSigned-off-by: Pekka Enberg \u003cpenberg@cs.helsinki.fi\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Paul Mackerras \u003cpaulus@samba.org\u003e\nCc: Frederic Weisbecker \u003cfweisbec@gmail.com\u003e\nLKML-Reference: \u003c1257696066-4046-1-git-send-email-penberg@cs.helsinki.fi\u003e\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3eeef339c787bdb414a0faba3e31d02a6efa2a02",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-record.c",
      "new_id": "a4be453fc8a92e3059fabb1a680ac008fe5569b9",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-record.c"
    },
    {
      "type": "modify",
      "old_id": "a1b1d10912dceae2fcab280d41e03f28a60b3a82",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-top.c",
      "new_id": "e23bc74e734fbf210312b04e776234f19920cced",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-top.c"
    }
  ]
}
