diff options
| author | Ingo Molnar <mingo@kernel.org> | 2014-12-08 11:50:24 +0100 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2014-12-08 11:50:24 +0100 | 
| commit | 2a2662bf88e693d477ef08351d03934f7bc0b51c (patch) | |
| tree | cef243df159cc12ada7e97998a253df7c0abb2a2 /tools/perf/util/dso.h | |
| parent | b2776bf7149bddd1f4161f14f79520f17fc1d71d (diff) | |
| parent | 36748b9518a2437beffe861b47dff6d12b736b3f (diff) | |
Merge branch 'perf/core-v3' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks into perf/hw_breakpoints
Pull AMD range breakpoints support from Frederic Weisbecker:
" - Extend breakpoint tools and core to support address range through perf
    event with initial backend support for AMD extended breakpoints.
    Syntax is:
           perf record -e mem:addr/len:type
    For example set write breakpoint from 0x1000 to 0x1200 (0x1000 + 512)
           perf record -e mem:0x1000/512:w
 - Clean up a bit breakpoint code validation
 It has been acked by Jiri and Oleg. "
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/dso.h')
| -rw-r--r-- | tools/perf/util/dso.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index acb651acc7fd..3782c82c6e44 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h @@ -22,7 +22,9 @@ enum dso_binary_type {  	DSO_BINARY_TYPE__BUILDID_DEBUGINFO,  	DSO_BINARY_TYPE__SYSTEM_PATH_DSO,  	DSO_BINARY_TYPE__GUEST_KMODULE, +	DSO_BINARY_TYPE__GUEST_KMODULE_COMP,  	DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE, +	DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE_COMP,  	DSO_BINARY_TYPE__KCORE,  	DSO_BINARY_TYPE__GUEST_KCORE,  	DSO_BINARY_TYPE__OPENEMBEDDED_DEBUGINFO, @@ -127,6 +129,7 @@ struct dso {  	const char	 *long_name;  	u16		 long_name_len;  	u16		 short_name_len; +	void		*dwfl;			/* DWARF debug info */  	/* dso data file */  	struct { @@ -138,6 +141,11 @@ struct dso {  		struct list_head open_entry;  	} data; +	union { /* Tool specific area */ +		void	 *priv; +		u64	 db_id; +	}; +  	char		 name[0];  }; @@ -179,6 +187,11 @@ int dso__kernel_module_get_build_id(struct dso *dso, const char *root_dir);  char dso__symtab_origin(const struct dso *dso);  int dso__read_binary_type_filename(const struct dso *dso, enum dso_binary_type type,  				   char *root_dir, char *filename, size_t size); +bool is_supported_compression(const char *ext); +bool is_kmodule_extension(const char *ext); +bool is_kernel_module(const char *pathname, bool *compressed); +bool decompress_to_file(const char *ext, const char *filename, int output_fd); +bool dso__needs_decompress(struct dso *dso);  /*   * The dso__data_* external interface provides following functions:  | 
