perf target: Rename functions to avoid double negation
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 16 May 2012 09:45:47 +0000 (18:45 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 May 2012 15:09:34 +0000 (12:09 -0300)
commitaa22dd4990e38700b1855555aa0def5215859abb
treeb49e4b99db265a0dc7bd38d5605396889985e395
parent978da300c7a65494692b329a6a4cbf364afc37c5
perf target: Rename functions to avoid double negation

Rename perf_target__no_{cpu,task} to perf_target__has_{cpu,task} because
it's more intuitive and easy to parse (for human beings) when used with
negation.

The names are came out from David Ahern.  It is intended to be a
mechanical substitution without any functional change.

The perf_target__none remains unchanged since I couldn't find a right
name and it is hardly used with negation.

Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Suggested-by: David Ahern <dsahern@gmail.com>
Suggested-by: Ingo Molnar <mingo@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1337161549-9870-1-git-send-email-namhyung.kim@lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/target.h