linux_dsm_epyc7002/tools/perf/util
Frederic Weisbecker 1b290d670f perf tools: Add support for breakpoint events in perf tools
Add the breakpoint events support with this new sysnopsis:

  mem:addr[:access]

Where addr is a raw addr value in the kernel and access can be
either [r][w][x]

Example to profile tasklist_lock:

	$ grep tasklist_lock /proc/kallsyms
	ffffffff8189c000 D tasklist_lock

	$ perf record -e mem:0xffffffff8189c000:rw -a -f -c 1
	$ perf report

	# Samples: 62
	#
	# Overhead          Command  Shared Object  Symbol
	# ........  ...............  .............  ......
	#
	    29.03%          swapper  [kernel]       [k] _raw_read_trylock
	    29.03%          swapper  [kernel]       [k] _raw_read_unlock
	    19.35%             init  [kernel]       [k] _raw_read_trylock
	    19.35%             init  [kernel]       [k] _raw_read_unlock
	     1.61%         events/0  [kernel]       [k] _raw_read_trylock
	     1.61%         events/0  [kernel]       [k] _raw_read_unlock

Coming soon:

 - Support for symbols in the event definition.

 - Default period to 1 for breakpoint events because these are
   not high frequency events. The same thing is needed for trace
   events.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <1258987355-8751-4-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Prasad <prasad@linux.vnet.ibm.com>
2009-11-23 18:18:31 +01:00
..
include perf tools: Bring linear set of section headers for features 2009-11-11 07:30:19 +01:00
abspath.c
alias.c
cache.h
callchain.c perf tools: Unify debug messages mechanisms 2009-10-23 08:22:47 +02:00
callchain.h
color.c
color.h
config.c
ctype.c
data_map.c perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
data_map.h perf symbols: Pass the offset to perf_header__read_build_ids() 2009-11-16 22:05:49 +01:00
debug.c perf tools: Unify debug messages mechanisms 2009-10-23 08:22:47 +02:00
debug.h perf tools: Debug.h needs to include event.h for event_t 2009-11-16 22:05:50 +01:00
debugfs.c perf tools: Add debugfs utility routines for perf 2009-11-08 18:01:34 +01:00
debugfs.h perf tools: Add debugfs utility routines for perf 2009-11-08 18:01:34 +01:00
environment.c
event.c perf tools: Generalize event synthesizing routines 2009-10-27 13:51:53 +01:00
event.h perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
header.h perf tools: Eliminate some more die() uses in library functions 2009-11-19 18:47:17 +01:00
help.c
help.h
hist.c
hist.h
levenshtein.c
levenshtein.h
map.c perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
pager.c
parse-events.c perf tools: Add support for breakpoint events in perf tools 2009-11-23 18:18:31 +01:00
parse-events.h
parse-options.c
parse-options.h
path.c
PERF-VERSION-GEN
probe-finder.c perf/probes: Fall back to non-dwarf if possible 2009-11-04 13:02:47 +01:00
probe-finder.h perf/probes: Support function entry relative line number 2009-10-29 08:47:49 +01:00
quote.c
quote.h
run-command.c
run-command.h
sigchain.c
sigchain.h
sort.c perf tools: Bind callchains to the first sort dimension column 2009-10-23 07:55:18 +02:00
sort.h perf tools: Bind callchains to the first sort dimension column 2009-10-23 07:55:18 +02:00
strbuf.c
strbuf.h
string.c perf tools: Add new perf_atoll() function to parse string representing size in bytes 2009-11-15 14:54:23 +01:00
string.h perf tools: Add new perf_atoll() function to parse string representing size in bytes 2009-11-15 14:54:23 +01:00
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol.c perf symbols: Show messages about module loading only if verbose >= 1 2009-11-22 18:54:24 +01:00
symbol.h perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
thread.c perf tools: Unify debug messages mechanisms 2009-10-23 08:22:47 +02:00
thread.h perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
trace-event-info.c perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
trace-event-parse.c
trace-event-read.c perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
trace-event.h perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
types.h
usage.c
util.h Merge branch 'perf/core' into perf/probes 2009-11-17 10:17:47 +01:00
values.c
values.h
wrapper.c