)]}'
{
  "commit": "9d23a90a67261e73b2fcac04d8ca963c6b496afb",
  "tree": "81d453624f1834380740d3065cf022fe3500aad6",
  "parents": [
    "ef923214a4816c289e4af2d67a9ebb1a31e4ac61"
  ],
  "author": {
    "name": "Paul Mackerras",
    "email": "paulus@samba.org",
    "time": "Thu May 14 21:48:08 2009 +1000"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Fri May 15 16:38:56 2009 +0200"
  },
  "message": "perf_counter: allow arch to supply event misc flags and instruction pointer\n\nAt present the values we put in overflow events for the misc\nflags indicating processor mode and the instruction pointer are\nobtained using the standard user_mode() and\ninstruction_pointer() functions. Those functions tell you where\nthe performance monitor interrupt was taken, which might not be\nexactly where the counter overflow occurred, for example\nbecause interrupts were disabled at the point where the\noverflow occurred, or because the processor had many\ninstructions in flight and chose to complete some more\ninstructions beyond the one that caused the counter overflow.\n\nSome architectures (e.g. powerpc) can supply more precise\ninformation about where the counter overflow occurred and the\nprocessor mode at that point.  This introduces new functions,\nperf_misc_flags() and perf_instruction_pointer(), which arch\ncode can override to provide more precise information if\navailable.  They have default implementations which are\nidentical to the existing code.\n\nThis also adds a new misc flag value,\nPERF_EVENT_MISC_HYPERVISOR, for the case where a counter\noverflow occurred in the hypervisor.  We encode the processor\nmode in the 2 bits previously used to indicate user or kernel\nmode; the values for user and kernel mode are unchanged and\nhypervisor mode is indicated by both bits being set.\n\n[ Impact: generalize perfcounter core facilities ]\n\nSigned-off-by: Paul Mackerras \u003cpaulus@samba.org\u003e\nAcked-by: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Corey Ashford \u003ccjashfor@linux.vnet.ibm.com\u003e\nCc: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\nLKML-Reference: \u003c18956.1272.818511.561835@cargo.ozlabs.ibm.com\u003e\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "004b6e162b96c7c39f1b81df18b88bc28e739be6",
      "old_mode": 33188,
      "old_path": "include/linux/perf_counter.h",
      "new_id": "c8c1dfc22c938a65171670ea50b92f692f6c1867",
      "new_mode": 33188,
      "new_path": "include/linux/perf_counter.h"
    },
    {
      "type": "modify",
      "old_id": "728a595399b00e7dc2218774b561aeb64dd31c0a",
      "old_mode": 33188,
      "old_path": "kernel/perf_counter.c",
      "new_id": "57840a94b1634ff520b2e2a34ff10e77dc3460ba",
      "new_mode": 33188,
      "new_path": "kernel/perf_counter.c"
    }
  ]
}
