)]}'
{
  "commit": "880ca15adf2392770a68047e7a98e076ff4d21da",
  "tree": "a1707991a13651bcefb5d92a2ddee9b3470552d9",
  "parents": [
    "25346b93ca079080c9cb23331db5c4f6404e8530"
  ],
  "author": {
    "name": "Paul Mackerras",
    "email": "paulus@samba.org",
    "time": "Mon Jun 01 17:49:14 2009 +1000"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Mon Jun 01 10:04:06 2009 +0200"
  },
  "message": "perf_counter: Allow software counters to count while task is not running\n\nThis changes perf_swcounter_match() so that per-task software\ncounters can count events that occur while their associated\ntask is not running.  This will allow us to use the generic\nsoftware counter code for counting task migrations, which can\noccur while the task is not scheduled in.\n\nTo do this, we have to distinguish between the situations where\nthe counter is inactive because its task has been scheduled\nout, and those where the counter is inactive because it is part\nof a group that was not able to go on the PMU.  In the former\ncase we want the counter to count, but not in the latter case.\nIf the context is active, we have the latter case.  If the\ncontext is inactive then we need to know whether the counter\nwas counting when the context was last active, which we can\ndetermine by comparing its -\u003etstamp_stopped timestamp with the\ncontext\u0027s timestamp.\n\nThis also folds three checks in perf_swcounter_match, checking\nperf_event_raw(), perf_event_type() and perf_event_id()\nindividually, into a single 64-bit comparison on\ncounter-\u003ehw_event.config, as an optimization.\n\nSigned-off-by: Paul Mackerras \u003cpaulus@samba.org\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Mike Galbraith \u003cefault@gmx.de\u003e\nCc: Paul Mackerras \u003cpaulus@samba.org\u003e\nCc: Corey Ashford \u003ccjashfor@linux.vnet.ibm.com\u003e\nCc: Marcelo Tosatti \u003cmtosatti@redhat.com\u003e\nCc: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\nCc: John Kacur \u003cjkacur@redhat.com\u003e\nLKML-Reference: \u003c18979.34810.259718.955621@cargo.ozlabs.ibm.com\u003e\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "da8dfef4b472cc80c9a7da69f5b89508a13d2747",
      "old_mode": 33188,
      "old_path": "kernel/perf_counter.c",
      "new_id": "ff8b4636f8451896e604999b53f1acc82aca0879",
      "new_mode": 33188,
      "new_path": "kernel/perf_counter.c"
    }
  ]
}
