)]}'
{
  "commit": "9c443dfdd31eddea6cbe6ee0ca469fbcc4e1dc3b",
  "tree": "6e217aaf89b941fbbc7b905046d5350392d642db",
  "parents": [
    "cdbae31408cf39372402076cf2e189ec693daa71"
  ],
  "author": {
    "name": "Arnaldo Carvalho de Melo",
    "email": "acme@redhat.com",
    "time": "Mon Dec 28 22:48:36 2009 -0200"
  },
  "committer": {
    "name": "Ingo Molnar",
    "email": "mingo@elte.hu",
    "time": "Wed Dec 30 12:00:00 2009 +0100"
  },
  "message": "perf diff: Fix support for all --sort combinations\n\nWhen we finish creating the hist_entries we _already_ have them\nsorted \"by name\", in fact by what is in --sort, that is exactly\nhow we can find the pairs in perf_session__match_hists as\n\u0027comm\u0027, \u0027dso\u0027 \u0026 \u0027symbol\u0027 all are strings we need to find the\nmatches in the baseline session.\n\nSo only do the sort by hits followed by a resort by --sort if we\nneed to find the position for shwowing the --displacement of\nhist entries.\n\nNow all these modes work correctly:\n\nExample is a simple \u0027perf record -f find / \u003e /dev/null\u0027 ran\ntwice then followed by the following commands:\n\n  $ perf diff -f --sort comm\n  # Baseline  Delta      Command\n  # ........ ..........  .......\n  #\n       0.00%   +100.00%     find\n  $ perf diff -f --sort dso\n  # Baseline  Delta           Shared Object\n  # ........ ..........  ..................\n  #\n      59.97%     -0.44%  [kernel]\n      21.17%     +0.28%  libc-2.5.so\n      18.49%     +0.16%  [ext3]\n       0.37%             find\n  $ perf diff -f --sort symbol | head -8\n  # Baseline  Delta      Symbol\n  # ........ ..........  ......\n  #\n       6.21%     +0.36%  [k] ext3fs_dirhash\n       3.43%     +0.41%  [.] __GI_strlen\n       3.53%     +0.16%  [k] __kmalloc\n       3.17%     +0.49%  [k] system_call\n       3.06%     +0.37%  [k] ext3_htree_store_dirent\n  $ perf diff -f --sort dso,symbol | head -8\n  # Baseline  Delta           Shared Object  Symbol\n  # ........ ..........  ..................  ......\n  #\n       6.21%     +0.36%  [ext3]              [k] ext3fs_dirhash\n       3.43%     +0.41%  libc-2.5.so         [.] __GI_strlen\n       3.53%     +0.16%  [kernel]            [k] __kmalloc\n       3.17%     +0.49%  [kernel]            [k] system_call\n       3.06%     +0.37%  [ext3]              [k] ext3_htree_store_dirent\n  $\n\nAnd we don\u0027t have to do two expensive resorts in the common, non\n--displacement case.\n\nSigned-off-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\nCc: Frédéric Weisbecker \u003cfweisbec@gmail.com\u003e\nCc: Mike Galbraith \u003cefault@gmx.de\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Paul Mackerras \u003cpaulus@samba.org\u003e\nLKML-Reference: \u003c1262047716-23171-5-git-send-email-acme@infradead.org\u003e\nSigned-off-by: Ingo Molnar \u003cmingo@elte.hu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "876a4b981be8e79209fd2fb451afc49782030e8d",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-diff.c",
      "new_id": "924bfb77a6abe800c05d7e4a854938eadb601432",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-diff.c"
    }
  ]
}
