Files
archived-xed/examples/xed-nm-symtab.h
Andi Kleen c81ea657ed Perf filter 4 (#37)
* Add support for disassembling as a filter

Linux perf can output hex dumps of individual instructions, but it
doesn't have a full disassembler. Extend xed to allow filtering of
such dumps.

The instructions always have a specific format:

other file HEX-IP(optional) ... insn: byte1 byte2 ... other things

This patch adds a new -F prefix mode that looks for this
format and runs as a filter that replaces the insn: ... patterns
with disassembled instructions.

* xed: Add support for reading symbol tables from nm style dumps

When decoding Linux kernel dumps it can be useful to use the
symbol table in /proc/kallsyms. This is the same format
as output by `nm'. Add a new -S option to xed that reads
such a file and uses it to resolve symbols.
Right now this is only implemented in filter mode (-F)
2017-04-07 10:07:53 -04:00

23 lines
717 B
C

/*BEGIN_LEGAL
Copyright (c) 2017 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
END_LEGAL */
void xed_read_nm_symtab(char *fn);
extern xed_symbol_table_t nm_symtab;
extern xed_bool_t nm_symtab_init;