perf diff: Make hist_entry_diff fields union
authorNamhyung Kim <namhyung@kernel.org>
Sun, 19 Apr 2015 04:04:10 +0000 (13:04 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 29 Apr 2015 13:37:44 +0000 (10:37 -0300)
commita0b404f4c0820a934ae1b6ce39d8a4a0f01a7a20
treeeda3323e26c228881ec6d18f412d03ee10633a91
parentcc5e461ae8e071a95bf6ee917b50998dc31cae17
perf diff: Make hist_entry_diff fields union

The period_ratio_delta, period_ratio and wdiff are never by used at the
same time.  Instead, Just one of them is accessed according to a
comparison method.  So make it union to reduce memory footprint.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1429416255-12070-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.h