be displayed by default. If **linum** is specified,
the filename, line number and line column will also be
displayed on top of the source line.
+
**bpftool prog dump jited** *PROG* [{ **file** *FILE* | **opcodes** | **linum** }]
Dump jited image (host machine code) of the program.
If *FILE* is specified image will be written to a file,
be displayed by default. If **linum** is specified,
the filename, line number and line column will also be
displayed on top of the source line.
+
**bpftool prog pin** *PROG* *FILE*
Pin program *PROG* as *FILE*.
const struct bpf_prog_linfo *prog_linfo,
__u64 func_ksym, unsigned int func_idx,
bool linum)
-
{
}
static inline int disasm_init(void)
info.jited_line_info_rec_size = jited_linfo_rec_size;
info.jited_line_info = ptr_to_u64(jited_linfo);
-
err = bpf_obj_get_info_by_fd(fd, &info, &len);
close(fd);
if (err) {
if (linfo_cnt) {
prog_linfo = bpf_prog_linfo__new(&info);
if (!prog_linfo)
- p_err("error in processing bpf_line_info. continue without it.");
+ p_info("error in processing bpf_line_info. continue without it.");
}
if (filepath) {