)]}'
{
  "commit": "bf561d3c13423fc54daa19b5d49dc15fafdb7acc",
  "tree": "be7d9153b34fb23697fc3590a41b385e6c08994f",
  "parents": [
    "5f05182fab9a29fea6c4ab8113be45adf0c11bf0"
  ],
  "author": {
    "name": "Arnaldo Carvalho de Melo",
    "email": "acme@redhat.com",
    "time": "Thu Apr 25 18:36:51 2019 -0300"
  },
  "committer": {
    "name": "Arnaldo Carvalho de Melo",
    "email": "acme@redhat.com",
    "time": "Thu May 02 16:00:20 2019 -0400"
  },
  "message": "perf bench numa: Add define for RUSAGE_THREAD if not present\n\nWhile cross building perf to the ARC architecture on a fedora 30 host,\nwe were failing with:\n\n      CC       /tmp/build/perf/bench/numa.o\n  bench/numa.c: In function ‘worker_thread’:\n  bench/numa.c:1261:12: error: ‘RUSAGE_THREAD’ undeclared (first use in this function); did you mean ‘SIGEV_THREAD’?\n    getrusage(RUSAGE_THREAD, \u0026rusage);\n              ^~~~~~~~~~~~~\n              SIGEV_THREAD\n  bench/numa.c:1261:12: note: each undeclared identifier is reported only once for each function it appears in\n\n[perfbuilder@60d5802468f6 perf]$ /arc_gnu_2019.03-rc1_prebuilt_uclibc_le_archs_linux_install/bin/arc-linux-gcc --version | head -1\narc-linux-gcc (ARCv2 ISA Linux uClibc toolchain 2019.03-rc1) 8.3.1 20190225\n[perfbuilder@60d5802468f6 perf]$\n\nTrying to reproduce a report by Vineet, I noticed that, with just\ncross-built zlib and numactl libraries, I ended up with the above\nfailure.\n\nSo, since RUSAGE_THREAD is available as a define, check for that and\nnumactl libraries, I ended up with the above failure.\n\nSo, since RUSAGE_THREAD is available as a define in the system headers,\ncheck if it is defined in the \u0027perf bench numa\u0027 sources and define it if\nnot.\n\nNow it builds and I have to figure out if the problem reported by Vineet\nonly takes place if we have libelf or some other library available.\n\nCc: Arnd Bergmann \u003carnd@arndb.de\u003e\nCc: Jiri Olsa \u003cjolsa@kernel.org\u003e\nCc: linux-snps-arc@lists.infradead.org\nCc: Namhyung Kim \u003cnamhyung@kernel.org\u003e\nCc: Vineet Gupta \u003cVineet.Gupta1@synopsys.com\u003e\nLink: https://lkml.kernel.org/n/tip-2wb4r1gir9xrevbpq7qp0amk@git.kernel.org\nSigned-off-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "98ad783efc69dd1c3d3cae65704ce7bd0181fe37",
      "old_mode": 33188,
      "old_path": "tools/perf/bench/numa.c",
      "new_id": "a7784554a80deba55f91753598f8a10796f8d6f4",
      "new_mode": 33188,
      "new_path": "tools/perf/bench/numa.c"
    }
  ]
}
