)]}'
{
  "commit": "4f271a2a60c748599b30bb4dafff30d770439b96",
  "tree": "4b6aa671e0fbe3e81a423a551ce5aa1032725e2b",
  "parents": [
    "7ea5906405a1f3fc1c0033dfd7e02f2cfd1de5e5"
  ],
  "author": {
    "name": "Vaibhav Nagarnaik",
    "email": "vnagarnaik@google.com",
    "time": "Mon Jun 13 17:51:57 2011 -0700"
  },
  "committer": {
    "name": "Steven Rostedt",
    "email": "rostedt@goodmis.org",
    "time": "Tue Jun 14 22:48:37 2011 -0400"
  },
  "message": "tracing: Add a proc file to stop tracing and free buffer\n\nThe proc file entry buffer_size_kb is used to set the size of tracing\nbuffer. The memory to expand the buffer size is kernel memory. Consider\na use case where tracing is handled by a user space utility, which acts\nas a gate keeper for tracing requests. In an OOM condition, tracing is\nconsidered a low priority task and if the utility gets killed the ring\nbuffer memory cannot be released back to the kernel.\n\nThis patch adds a proc file called \"free_buffer\" whose purpose is to\nstop tracing and free up the ring buffer when it is closed.\n\nThe user space process can then set the desired size in buffer_size_kb\nfile and open the fd to the \"free_buffer\" file. Under OOM condition, if\nthe process gets killed, the kernel closes the file descriptor. The\nrelease handler stops the tracing and releases the kernel memory\nautomatically.\n\nCc: Ingo Molnar \u003cmingo@redhat.com\u003e\nCc: Frederic Weisbecker \u003cfweisbec@gmail.com\u003e\nCc: Michael Rubin \u003cmrubin@google.com\u003e\nCc: David Sharp \u003cdhsharp@google.com\u003e\nSigned-off-by: Vaibhav Nagarnaik \u003cvnagarnaik@google.com\u003e\nLink: http://lkml.kernel.org/r/1308012717-11148-1-git-send-email-vnagarnaik@google.com\nSigned-off-by: Steven Rostedt \u003crostedt@goodmis.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "61fda6b6f1aba612148525ab6ead38af1bb4656b",
      "old_mode": 33188,
      "old_path": "kernel/trace/trace.c",
      "new_id": "9c557ae6a21eb4df72aa8549bbe0ed9b539415c8",
      "new_mode": 33188,
      "new_path": "kernel/trace/trace.c"
    }
  ]
}
