)]}'
{
  "commit": "6eaeeaba39e5fa3d52a0bb8de15e995516ae251a",
  "tree": "5b4052fabfe107ad5332cb758ad8d86ea5a87848",
  "parents": [
    "02239c29967418284c05d58971894d658575e78c"
  ],
  "author": {
    "name": "Eric Dumazet",
    "email": "dada1@cosmosbay.com",
    "time": "Thu May 10 22:22:37 2007 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@woody.linux-foundation.org",
    "time": "Fri May 11 08:29:34 2007 -0700"
  },
  "message": "getrusage(): fill ru_inblock and ru_oublock fields if possible\n\nIf CONFIG_TASK_IO_ACCOUNTING is defined, we update io accounting counters for\neach task.\n\nThis patch permits reporting of values using the well known getrusage()\nsyscall, filling ru_inblock and ru_oublock instead of null values.\n\nAs TASK_IO_ACCOUNTING currently counts bytes counts, we approximate blocks\ncount doing : nr_blocks \u003d nr_bytes / 512\n\nExample of use :\n----------------------\nAfter patch is applied, /usr/bin/time command can now give a good\napproximation of IO that the process had to do.\n\n$ /usr/bin/time grep tototo /usr/include/*\nCommand exited with non-zero status 1\n0.00user 0.02system 0:02.11elapsed 1%CPU (0avgtext+0avgdata 0maxresident)k\n24288inputs+0outputs (0major+259minor)pagefaults 0swaps\n\n$ /usr/bin/time dd if\u003d/dev/zero of\u003d/tmp/testfile count\u003d1000\n1000+0 enregistrements lus\n1000+0 enregistrements écrits\n512000 octets (512 kB) copiés, 0,00326601 seconde, 157 MB/s\n0.00user 0.00system 0:00.00elapsed 80%CPU (0avgtext+0avgdata 0maxresident)k\n0inputs+3000outputs (0major+299minor)pagefaults 0swaps\n\nSigned-off-by: Eric Dumazet \u003cdada1@cosmosbay.com\u003e\nCc: Oleg Nesterov \u003coleg@tv-sign.ru\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "17b72d88c4cb4c048f1f24e3d5b8f1e6b28b6529",
      "old_mode": 33188,
      "old_path": "include/linux/sched.h",
      "new_id": "75f44379b7e98091d7d0cb78f19de5bbf7b5fe5c",
      "new_mode": 33188,
      "new_path": "include/linux/sched.h"
    },
    {
      "type": "modify",
      "old_id": "df2a319106b2bd82e1518fdbf307d97bb96c8ed5",
      "old_mode": 33188,
      "old_path": "include/linux/task_io_accounting_ops.h",
      "new_id": "1218733ec6b58c27ea894f13a7b61f2f7f9d1623",
      "new_mode": 33188,
      "new_path": "include/linux/task_io_accounting_ops.h"
    },
    {
      "type": "modify",
      "old_id": "b0c6f0c3a2dfadd5e36647f2b0e5e5699174330d",
      "old_mode": 33188,
      "old_path": "kernel/exit.c",
      "new_id": "7a5fd77f8fb01e0c6ef72f63972c98699bab92c9",
      "new_mode": 33188,
      "new_path": "kernel/exit.c"
    },
    {
      "type": "modify",
      "old_id": "5dd3979747f5ef8e1e217d039f14ad8759e38984",
      "old_mode": 33188,
      "old_path": "kernel/fork.c",
      "new_id": "da92e01aba6b0bf7f8842d3d5afe8eb72dfc292a",
      "new_mode": 33188,
      "new_path": "kernel/fork.c"
    },
    {
      "type": "modify",
      "old_id": "cdb7e9457ba6596336b2618282f418bf13626e30",
      "old_mode": 33188,
      "old_path": "kernel/sys.c",
      "new_id": "ec319bbb0bd4ac7c6644f00f26383017ca54ffd7",
      "new_mode": 33188,
      "new_path": "kernel/sys.c"
    }
  ]
}
