)]}'
{
  "commit": "755d4fe46529018ae45bc7c86df682de45ace764",
  "tree": "470788ad3e9fa704ef41fa62ac9e770193010853",
  "parents": [
    "a9efd39cd547223597cfe7c53acec44c099b9264"
  ],
  "author": {
    "name": "Seiji Aguchi",
    "email": "seiji.aguchi@hds.com",
    "time": "Mon Nov 26 16:07:44 2012 -0800"
  },
  "committer": {
    "name": "Tony Luck",
    "email": "tony.luck@intel.com",
    "time": "Mon Nov 26 16:07:44 2012 -0800"
  },
  "message": "efi_pstore: Add a sequence counter to a variable name\n\n[Issue]\n\nCurrently, a variable name, which identifies each entry, consists of type, id and ctime.\nBut if multiple events happens in a short time, a second/third event may fail to log because\nefi_pstore can\u0027t distinguish each event with current variable name.\n\n[Solution]\n\nA reasonable way to identify all events precisely is introducing a sequence counter to\nthe variable name.\n\nThe sequence counter has already supported in a pstore layer with \"oopscount\".\nSo, this patch adds it to a variable name.\nAlso, it is passed to read/erase callbacks of platform drivers in accordance with\nthe modification of the variable name.\n\n  \u003cbefore applying this patch\u003e\n a variable name of first event: dump-type0-1-12345678\n a variable name of second event: dump-type0-1-12345678\n\n  type:0\n  id:1\n  ctime:12345678\n\n If multiple events happen in a short time, efi_pstore can\u0027t distinguish them because\n variable names are same among them.\n\n  \u003cafter applying this patch\u003e\n\n it can be distinguishable by adding a sequence counter as follows.\n\n a variable name of first event: dump-type0-1-1-12345678\n a variable name of Second event: dump-type0-1-2-12345678\n\n  type:0\n  id:1\n  sequence counter: 1(first event), 2(second event)\n  ctime:12345678\n\nIn case of a write callback executed in pstore_console_write(), \"0\" is added to\nan argument of the write callback because it just logs all kernel messages and\ndoesn\u0027t need to care about multiple events.\n\nSigned-off-by: Seiji Aguchi \u003cseiji.aguchi@hds.com\u003e\nAcked-by: Rafael J. Wysocki \u003crafael.j.wysocki@intel.com\u003e\nAcked-by: Mike Waychison \u003cmikew@google.com\u003e\nSigned-off-by: Tony Luck \u003ctony.luck@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0bd6ae4a899fbdf1aa21b6ca7165ce4a76e19b7e",
      "old_mode": 33188,
      "old_path": "drivers/acpi/apei/erst.c",
      "new_id": "6d894bfd8b8fe8d7aa8f22642a42aa26ce9a68eb",
      "new_mode": 33188,
      "new_path": "drivers/acpi/apei/erst.c"
    },
    {
      "type": "modify",
      "old_id": "3803621c0d45f6235897ed860870d14f47217247",
      "old_mode": 33188,
      "old_path": "drivers/firmware/efivars.c",
      "new_id": "7ad3aae6e0854e39f8194a7bd43bfe6db098677d",
      "new_mode": 33188,
      "new_path": "drivers/firmware/efivars.c"
    },
    {
      "type": "modify",
      "old_id": "4300af6547108ec93ea61cf1942a1bcf747b291c",
      "old_mode": 33188,
      "old_path": "fs/pstore/inode.c",
      "new_id": "ed1d8c7212da6cdb8911d1fbd6784d499a450b90",
      "new_mode": 33188,
      "new_path": "fs/pstore/inode.c"
    },
    {
      "type": "modify",
      "old_id": "4847f588b7d5079df974c42a2f7324615e477aca",
      "old_mode": 33188,
      "old_path": "fs/pstore/internal.h",
      "new_id": "937d820f273c2b17c5b47aa365f230970b19cc32",
      "new_mode": 33188,
      "new_path": "fs/pstore/internal.h"
    },
    {
      "type": "modify",
      "old_id": "947fbe06c3b1f2ed0948b8fb050b43f2c48ff591",
      "old_mode": 33188,
      "old_path": "fs/pstore/platform.c",
      "new_id": "5ea2e77ff023f8a4060c071ab733f419b1cabc03",
      "new_mode": 33188,
      "new_path": "fs/pstore/platform.c"
    },
    {
      "type": "modify",
      "old_id": "749693fcb75a6cad7f63dd007b42a3d6e6a9d3d2",
      "old_mode": 33188,
      "old_path": "fs/pstore/ram.c",
      "new_id": "2bfa36e0ffe8d464dde8b74c37c91c46d16d49ae",
      "new_mode": 33188,
      "new_path": "fs/pstore/ram.c"
    },
    {
      "type": "modify",
      "old_id": "f6e93362d25932b7467f121cefd9274fdd830182",
      "old_mode": 33188,
      "old_path": "include/linux/pstore.h",
      "new_id": "1788909d9a99fdc22dbe83b83cd928fec421ad4c",
      "new_mode": 33188,
      "new_path": "include/linux/pstore.h"
    }
  ]
}
