)]}'
{
  "commit": "5d81e5cfb37a174e8ddc0413e2e70cdf05807ace",
  "tree": "3190ed611a1b88092d4a0aee584b505999a26f17",
  "parents": [
    "9251f904f95175b4a1d8cbc0449e748f9edd7629"
  ],
  "author": {
    "name": "Andrew Vagin",
    "email": "avagin@openvz.org",
    "time": "Mon Nov 07 15:54:12 2011 +0300"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Mon Nov 14 13:31:28 2011 +0100"
  },
  "message": "events: Don\u0027t divide events if it has field period\n\nThis patch solves the following problem:\n\nNow some samples may be lost due to throttling. The number of samples is\nrestricted by sysctl_perf_event_sample_rate/HZ.  A trace event is\ndivided on some samples according to event\u0027s period.  I don\u0027t sure, that\nwe should generate more than one sample on each trace event. I think the\nbetter way to use SAMPLE_PERIOD.\n\nE.g.: I want to trace when a process sleeps. I created a process, which\nsleeps for 1ms and for 4ms.  perf got 100 events in both cases.\n\nswapper     0 [000]  1141.371830: sched_stat_sleep: comm\u003dfoo pid\u003d1801 delay\u003d1386750 [ns]\nswapper     0 [000]  1141.369444: sched_stat_sleep: comm\u003dfoo pid\u003d1801 delay\u003d4499585 [ns]\n\nIn the first case a kernel want to send 4499585 events and\nin the second case it wants to send 1386750 events.\nperf-reports shows that process sleeps in both places equal time. It\u0027s\nbug.\n\nWith this patch kernel generates one event on each \"sleep\" and the time\nslice is saved in the field \"period\". Perf knows how handle it.\n\nSigned-off-by: Andrew Vagin \u003cavagin@openvz.org\u003e\nSigned-off-by: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nLink: http://lkml.kernel.org/r/1320670457-2633428-3-git-send-email-avagin@openvz.org\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "eadac69265fc60619c1317425a07d9394013133a",
      "old_mode": 33188,
      "old_path": "kernel/events/core.c",
      "new_id": "8d9dea56c262bbe91494f5600b95fe10a01068c9",
      "new_mode": 33188,
      "new_path": "kernel/events/core.c"
    }
  ]
}
