linux-stable/tools/perf
Arnaldo Carvalho de Melo ef503831d8 perf evsel: Remove idx parm from constructor
Most uses of the evsel constructor are followed by a call to
perf_evlist__add with an idex of evlist->nr_entries, so make rename
the current constructor to perf_evsel__new_idx and remove the need
for passing the constructor for the common case.

We still need the new_idx variant because the way groups are handled,
with evsel->nr_members holding the number of entries in an evlist,
partitioning the evlist into sublists inside a single linked list.

This asks for a clarifying refactoring, but for now simplify the non
parser cases, so that tool writers don't have to bother with evsel idx
setting.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-zy9tskx6jqm2rmw7468zze2a@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-11-11 15:56:39 -03:00
..
arch
bench
config
Documentation
python
scripts
tests perf evsel: Remove idx parm from constructor 2013-11-11 15:56:39 -03:00
ui perf ui tui progress: Don't force a refresh during progress update 2013-11-11 15:56:39 -03:00
util perf evsel: Remove idx parm from constructor 2013-11-11 15:56:39 -03:00
.gitignore
bash_completion
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c
builtin-evlist.c
builtin-help.c
builtin-inject.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-kmem.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-kvm.c
builtin-list.c
builtin-lock.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-mem.c
builtin-probe.c
builtin-record.c perf record: Remove post_processing_offset variable 2013-11-07 11:01:59 -03:00
builtin-report.c
builtin-sched.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-script.c
builtin-stat.c
builtin-timechart.c perf evsel: Ditch evsel->handler.data field 2013-11-07 10:40:47 -03:00
builtin-top.c
builtin-trace.c perf evsel: Remove idx parm from constructor 2013-11-11 15:56:39 -03:00
builtin.h
command-list.txt
CREDITS
design.txt
Makefile
Makefile.perf
MANIFEST
perf-archive.sh
perf.c
perf.h