mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-09-04 20:19:47 +08:00 
			
		
		
		
	 02ff58dcf7
			
		
	
	
		02ff58dcf7
		
	
	
	
	
		
			
			Replace the repeated license text with SDPX identifiers. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Roman Gushchin <guro@fb.com> Acked-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Yonghong Song <yhs@fb.com> Acked-by: Stanislav Fomichev <sdf@google.com> Acked-by: Sean Young <sean@mess.org> Acked-by: Jiri Benc <jbenc@redhat.com> Acked-by: David Calavera <david.calavera@gmail.com> Acked-by: Andrey Ignatov <rdna@fb.com> Acked-by: Joe Stringer <joe@wand.net.nz> Acked-by: David Ahern <dsahern@gmail.com> Acked-by: Alexei Starovoitov <alexei.starovoitov@gmail.com> Acked-by: Petar Penkov <ppenkov@stanford.edu> Acked-by: Sandipan Das <sandipan@linux.ibm.com> Acked-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> Acked-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Taeung Song <treeze.taeung@gmail.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> CC: okash.khawaja@gmail.com Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
 | |
| /* Copyright (C) 2018 Netronome Systems, Inc. */
 | |
| 
 | |
| #ifndef __BPF_TOOL_XLATED_DUMPER_H
 | |
| #define __BPF_TOOL_XLATED_DUMPER_H
 | |
| 
 | |
| #define SYM_MAX_NAME	256
 | |
| 
 | |
| struct bpf_prog_linfo;
 | |
| 
 | |
| struct kernel_sym {
 | |
| 	unsigned long address;
 | |
| 	char name[SYM_MAX_NAME];
 | |
| };
 | |
| 
 | |
| struct dump_data {
 | |
| 	unsigned long address_call_base;
 | |
| 	struct kernel_sym *sym_mapping;
 | |
| 	__u32 sym_count;
 | |
| 	__u64 *jited_ksyms;
 | |
| 	__u32 nr_jited_ksyms;
 | |
| 	struct btf *btf;
 | |
| 	void *func_info;
 | |
| 	__u32 finfo_rec_size;
 | |
| 	const struct bpf_prog_linfo *prog_linfo;
 | |
| 	char scratch_buff[SYM_MAX_NAME + 8];
 | |
| };
 | |
| 
 | |
| void kernel_syms_load(struct dump_data *dd);
 | |
| void kernel_syms_destroy(struct dump_data *dd);
 | |
| struct kernel_sym *kernel_syms_search(struct dump_data *dd, unsigned long key);
 | |
| void dump_xlated_json(struct dump_data *dd, void *buf, unsigned int len,
 | |
| 		       bool opcodes, bool linum);
 | |
| void dump_xlated_plain(struct dump_data *dd, void *buf, unsigned int len,
 | |
| 		       bool opcodes, bool linum);
 | |
| void dump_xlated_for_graph(struct dump_data *dd, void *buf, void *buf_end,
 | |
| 			   unsigned int start_index);
 | |
| 
 | |
| #endif
 |