diff options
| author | Ingo Molnar <[email protected]> | 2016-09-05 15:15:49 +0200 | 
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-09-05 15:15:49 +0200 | 
| commit | c0b172e5b6770048751b2c0a4fe44346c2080c5d (patch) | |
| tree | 1a423ca2585eb1aae8d7e96b1bea7d5f3c03280f /tools/perf/util/dwarf-aux.h | |
| parent | c9bbdd4830ab06288bb1d8c00ed8c8c6e80e377a (diff) | |
| parent | 6243b9dc4c991fe8bdc53a0e029908aef3ddb101 (diff) | |
Merge tag 'perf-core-for-mingo-20160901' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
User visible changes:
- Support generating cross arch probes, i.e. if you specify a vmlinux
  file for different arch than the one in the host machine,
	 $ perf probe --definition function_name args
  will generate the probe definition string needed to append to the
  target machine /sys/kernel/debug/tracing/kprobes_events file, using
  scripting (Masami Hiramatsu).
- Make 'perf probe' skip the function prologue in uprobes if program
  compiled without optimization, using the same strategy as gdb and
  systemtap uses, fixing a bug where:
	$ perf probe -x ./test 'foo i'
  When 'foo(42)' was used on the "./test" executable would produce i=0
  instead of the expected i=42 (Ravi Bangoria)
- Demangle symbols for synthesized @plt entries too (Millian Wolff)
Documentation changes:
- Show default report configuration in 'perf config' example
  and docs (Millian Wolff)
Infrastructure changes:
- Make 'perf test vmlinux' tolerate the symbol aliasing pruning done when
  loading kallsyms and vmlinux (Arnaldo Carvalho de Melo)
- Improve output of 'perf test vmlinux' test, to help identify on the verbose
  output which lines are warning and which are errors (Arnaldo Carvalho de Melo)
- Prep work to stop having to pass symbol_filter_t to lots of functions,
  simplifying symtab loading routines (Arnaldo Carvalho de Melo)
- Honor symbol_conf.allow_aliases when loading kallsyms as well, it was using
  it only when loading vmlinux files (Arnaldo Carvalho de Melo)
- Fixup symbol->end before doing alias pruning when loading symbol tables
  (Arnaldo Carvalho de Melo)
- Fix error handling of lzma kernel module decompression (Shawn Lin)
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/dwarf-aux.h')
| -rw-r--r-- | tools/perf/util/dwarf-aux.h | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/tools/perf/util/dwarf-aux.h b/tools/perf/util/dwarf-aux.h index dc0ce1adb075..8b6d2f83af02 100644 --- a/tools/perf/util/dwarf-aux.h +++ b/tools/perf/util/dwarf-aux.h @@ -125,4 +125,12 @@ int die_get_typename(Dwarf_Die *vr_die, struct strbuf *buf);  /* Get the name and type of given variable DIE, stored as "type\tname" */  int die_get_varname(Dwarf_Die *vr_die, struct strbuf *buf);  int die_get_var_range(Dwarf_Die *sp_die, Dwarf_Die *vr_die, struct strbuf *buf); + +/* Check if target program is compiled with optimization */ +bool die_is_optimized_target(Dwarf_Die *cu_die); + +/* Use next address after prologue as probe location */ +void die_skip_prologue(Dwarf_Die *sp_die, Dwarf_Die *cu_die, +		       Dwarf_Addr *entrypc); +  #endif |