)]}'
{
  "commit": "082605de5f82eb692cc90f7fda071cc01bb5ac34",
  "tree": "f3e2536d840dff5f15e25ee609ab37a645f8fd9a",
  "parents": [
    "1de9e8e70f5acc441550ca75433563d91b269bbe"
  ],
  "author": {
    "name": "Steven Rostedt",
    "email": "srostedt@redhat.com",
    "time": "Mon Jan 19 14:32:51 2009 -0500"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Tue Jan 20 13:09:06 2009 +0100"
  },
  "message": "ring-buffer: fix alignment problem\n\nImpact: fix to allow some archs to use the ring buffer\n\nCommits in the ring buffer are checked by pointer arithmetic.\nIf the calculation is incorrect, then the commits will never take\nplace and the buffer will simply fill up and report an error.\n\nEach page in the ring buffer has a small header:\n\nstruct buffer_data_page {\n\tu64\t\ttime_stamp;\n\tlocal_t\t\tcommit;\n\tunsigned char\tdata[];\n};\n\nUnfortuntely, some of the calculations used sizeof(struct buffer_data_page)\nto know the size of the header. But this is incorrect on some archs,\nwhere sizeof(struct buffer_data_page) does not equal\noffsetof(struct buffer_data_page, data), and on those archs, the commits\nare never processed.\n\nThis patch replaces the sizeof with offsetof.\n\nSigned-off-by: Steven Rostedt \u003csrostedt@redhat.com\u003e\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8b0daf0662ef45e7ad6ad9df71e52dfd3c3459ba",
      "old_mode": 33188,
      "old_path": "kernel/trace/ring_buffer.c",
      "new_id": "1d6526361d06b7ca7ee3163c4e6e43758b09507e",
      "new_mode": 33188,
      "new_path": "kernel/trace/ring_buffer.c"
    }
  ]
}
