OSDN Git Service

perf tools: Save bpf_prog_info and BTF of new BPF programs
[uclinux-h8/linux.git] / tools / perf / builtin-record.c
index 6f645fd..4e2d953 100644 (file)
@@ -1238,6 +1238,9 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
                goto out_child;
        }
 
+       if (!opts->no_bpf_event)
+               bpf_event__add_sb_event(&sb_evlist, &session->header.env);
+
        if (perf_evlist__start_sb_thread(sb_evlist, &rec->opts.target)) {
                pr_debug("Couldn't start the BPF side band thread:\nBPF programs starting from now on won't be annotatable\n");
                opts->no_bpf_event = true;