android_kernel_xiaomi_sm8350/tools/perf
Namhyung Kim bd64fcb880 perf annotate: Cleanup disasm__calc_percent()
The loop end condition is calculated from next disasm_line or the symbol
size if it's the last disasm_line.  But it doesn't need to be calculated
at every iteration.  Moving it out of the function can simplify code a
bit.  Also the src_line doesn't need to be checked in every time.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1362462812-30885-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-03-15 13:06:05 -03:00
..
arch perf tools: Fix build on non-glibc systems due to libio.h absence 2013-03-15 13:05:13 -03:00
bench perf tools: Fix LIBNUMA build with glibc 2.12 and older. 2013-03-14 08:06:21 -03:00
config perf tools: Make numa benchmark optional 2013-01-30 10:36:21 -03:00
Documentation perf annotate: Make it to be able to skip unannotatable symbols 2013-02-14 14:59:28 -03:00
python
scripts perf perl scripts: Fix SIGALRM and pipe read race for rwtop 2013-02-06 18:09:27 -03:00
tests perf evlist: Add want_signal parameter to perf_evlist__prepare_workload() 2013-03-15 13:06:03 -03:00
ui perf annotate: Pass evsel instead of evidx on annotation functions 2013-03-15 13:06:04 -03:00
util perf annotate: Cleanup disasm__calc_percent() 2013-03-15 13:06:05 -03:00
.gitignore
bash_completion
builtin-annotate.c perf annotate: Pass evsel instead of evidx on annotation functions 2013-03-15 13:06:04 -03:00
builtin-bench.c perf tools: Make numa benchmark optional 2013-01-30 10:36:21 -03:00
builtin-buildid-cache.c perf buildid-cache: Add --update option 2013-02-14 14:59:27 -03:00
builtin-buildid-list.c perf symbols: Generalize filter in __fprintf_buildid methods 2012-12-09 08:46:07 -03:00
builtin-diff.c perf sort: Make setup_sorting returns an error code 2013-02-06 18:09:26 -03:00
builtin-evlist.c perf evlist: Pass the event_group info via perf_attr_details 2013-02-06 18:09:28 -03:00
builtin-help.c
builtin-inject.c
builtin-kmem.c perf kmem: Use memdup() 2013-01-25 12:49:28 -03:00
builtin-kvm.c perf tools: Introduce tools/lib/lk library 2013-03-15 13:06:00 -03:00
builtin-list.c
builtin-lock.c
builtin-probe.c perf tools: Introduce tools/lib/lk library 2013-03-15 13:06:00 -03:00
builtin-record.c perf evlist: Add want_signal parameter to perf_evlist__prepare_workload() 2013-03-15 13:06:03 -03:00
builtin-report.c perf sort: Make setup_sorting returns an error code 2013-02-06 18:09:26 -03:00
builtin-sched.c perf session: There is no need for a per session hists instance 2013-01-24 16:40:12 -03:00
builtin-script.c perf script: Don't display trace info when invoking scripts 2013-01-24 16:40:52 -03:00
builtin-stat.c perf stat: Use perf_evlist__prepare/start_workload() 2013-03-15 13:06:04 -03:00
builtin-timechart.c
builtin-top.c perf annotate: Pass evsel instead of evidx on annotation functions 2013-03-15 13:06:04 -03:00
builtin-trace.c perf evlist: Add want_signal parameter to perf_evlist__prepare_workload() 2013-03-15 13:06:03 -03:00
builtin.h
command-list.txt perf tools: Sort command-list.txt alphabetically 2013-03-15 13:05:59 -03:00
CREDITS
design.txt
Makefile perf tools: Introduce tools/lib/lk library 2013-03-15 13:06:00 -03:00
MANIFEST perf tools: Introduce tools/lib/lk library 2013-03-15 13:06:00 -03:00
perf-archive.sh
perf.c perf tools: Extract perf-specific stuff from debugfs.c 2013-03-15 13:06:01 -03:00
perf.h perf evlist: Make event_copy local to mmaps 2013-02-06 18:09:26 -03:00