)]}'
{
  "commit": "29208e573a9409ee56599cc0157f31b42c7a0235",
  "tree": "d3fab38970ba13235c630f4ab4f70edc217ac628",
  "parents": [
    "cc02c921a01794f85ad53b396133f11d4ddd17ff"
  ],
  "author": {
    "name": "Jiri Olsa",
    "email": "jolsa@redhat.com",
    "time": "Thu Oct 20 15:59:43 2011 +0200"
  },
  "committer": {
    "name": "Arnaldo Carvalho de Melo",
    "email": "acme@redhat.com",
    "time": "Thu Oct 20 12:41:42 2011 -0200"
  },
  "message": "perf tools: Fix tracing info recording\n\nFixing the way the tracing information is stored within record command.\nThe current implementation is causing issues for pipe output.\n\nFollowing commands fail currently:\n\tperf script syscall-counts ls\n\tperf record -e syscalls:sys_exit_read ls | ./perf report -i -\n\nThe tracing information is part of the perf data file. It contains\nseveral files from within the tracing debugfs and procs directories.\n\nBeside some static header files, for each tracing event the format\nfile is added. The /proc/kallsyms file is also added.\n\nThe tracing data are stored with preceeding size. This is causing some\ndificulties for pipe output, since there\u0027s no way to tell debugfs/proc\nfile size before reading it. So, for pipe output, all the debugfs files\nwere read twice. Once to get the overall size and once to store the\ncontent itself. This can cause problem in case any of these file\nchanged, within the storage time.\n\nTo fix this behaviour and ensure the integrity of the tracing data, we:\n    - read debugfs/proc file into the temp file\n    - get temp file size and dump it to the pipe\n    - dump the temp file contents to the pipe\n\nCc: Eric Dumazet \u003ceric.dumazet@gmail.com\u003e\nCc: Ingo Molnar \u003cmingo@elte.hu\u003e\nCc: Neil Horman \u003cnhorman@tuxdriver.com\u003e\nCc: Paul Mackerras \u003cpaulus@samba.org\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Steven Rostedt \u003crostedt@goodmis.org\u003e\nLink: http://lkml.kernel.org/r/20111020135943.GD2092@jolsa.brq.redhat.com\nSigned-off-by: Jiri Olsa \u003cjolsa@redhat.com\u003e\nSigned-off-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6a9c041134bb1f950d45e22649411e438d590970",
      "old_mode": 33188,
      "old_path": "tools/perf/util/header.c",
      "new_id": "76c0b2c49eb82ce9a888189899d6ce053df6c0bd",
      "new_mode": 33188,
      "new_path": "tools/perf/util/header.c"
    },
    {
      "type": "modify",
      "old_id": "3403f814ad72e79682b9a88ef9e1770188edb427",
      "old_mode": 33188,
      "old_path": "tools/perf/util/trace-event-info.c",
      "new_id": "2d530cf74f435875e84d2f66485ea00b6794e91f",
      "new_mode": 33188,
      "new_path": "tools/perf/util/trace-event-info.c"
    },
    {
      "type": "modify",
      "old_id": "f674dda3363b42c407b5fc225ec55ecc3c9ad06b",
      "old_mode": 33188,
      "old_path": "tools/perf/util/trace-event.h",
      "new_id": "a84100817649920d99b0706e82e47699956d3efa",
      "new_mode": 33188,
      "new_path": "tools/perf/util/trace-event.h"
    }
  ]
}
