mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
7483a7a70a
Add support for displaying opcodes or/and file references (filepath, line and column numbers) when dumping the control flow graphs of loaded BPF programs with bpftool. The filepaths in the records are absolute. To avoid blocks on the graph to get too wide, we truncate them when they get too long (but we always keep the entire file name). In the unlikely case where the resulting file name is ambiguous, it remains possible to get the full path with a regular dump (no CFG). Signed-off-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/r/20230405132120.59886-7-quentin@isovalent.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
13 lines
328 B
C
13 lines
328 B
C
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
|
|
/* Copyright (C) 2018 Netronome Systems, Inc. */
|
|
|
|
#ifndef __BPF_TOOL_CFG_H
|
|
#define __BPF_TOOL_CFG_H
|
|
|
|
#include "xlated_dumper.h"
|
|
|
|
void dump_xlated_cfg(struct dump_data *dd, void *buf, unsigned int len,
|
|
bool opcodes, bool linum);
|
|
|
|
#endif /* __BPF_TOOL_CFG_H */
|