perf annotate: Add the cmp_null function and make use of it
commitcbfeb267cb0ff632dbc8ff02685012bee2e87434
authorJohn Kacur <jkacur@redhat.com>
Thu, 24 Sep 2009 16:01:51 +0000 (24 18:01 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 24 Sep 2009 19:27:50 +0000 (24 21:27 +0200)
tree24662435a423aa20aa4ac5468140b547f8afdd92
parent725b13685c61168f71825b3fb67d96d2d7aa3b0f
perf annotate: Add the cmp_null function and make use of it

This function exists in builtin-report.c but not in
builtin-annotate.c Functions that use cmp_null are shorter and
clearer.

Synchronizing functions between these two files will also make it
easier to potential share code in the future.

Signed-off-by: John Kacur <jkacur@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <alpine.LFD.2.00.0909241754031.11383@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-annotate.c