lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 17 Feb 2019 23:58:16 +0900 From: Namhyung Kim <namhyung@...nel.org> To: Song Liu <songliubraving@...com> Cc: Network Development <netdev@...r.kernel.org>, linux-kernel <linux-kernel@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>, Daniel Borkmann <daniel@...earbox.net>, kernel-team@...com, Peter Zijlstra <peterz@...radead.org>, Arnaldo Carvalho de Melo <acme@...hat.com>, Jiri Olsa <jolsa@...nel.org> Subject: Re: [PATCH v3 perf,bpf 08/11] perf, bpf: save btf information as headers to perf.data Hi, On Sat, Feb 16, 2019 at 6:55 AM Song Liu <songliubraving@...com> wrote: > > This patch enables perf-record to save btf information as headers to > perf.data A new header type HEADER_BTF is introduced for this data. > > Signed-off-by: Song Liu <songliubraving@...com> > --- [SNIP] > +static void print_btf(struct feat_fd *ff, FILE *fp) > +{ > + struct perf_env *env = &ff->ph->env; > + struct rb_root *root; > + struct rb_node *next; > + > + down_read(&env->bpf_progs.bpf_info_lock); > + > + root = &env->bpf_progs.btfs; > + next = rb_first(root); > + > + while (next) { > + struct btf_node *node; > + > + node = rb_entry(next, struct btf_node, rb_node); > + next = rb_next(&node->rb_node); > + fprintf(fp, "# bpf_prog_info of id %u\n", node->id); How about saying it's "btf" info? Thanks, Namhyung > + } > + > + up_read(&env->bpf_progs.bpf_info_lock); > +}
Powered by blists - more mailing lists