Re: [PATCH] perf: assign proper ff->ph in perf_event__synthesize_features()

2019-07-06 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 19, 2019 at 06:04:53PM -0700, Song Liu escreveu: > bpf/btf write_* functions need ff->ph->env. > > With this missing, pipe-mode (perf record -o -) would crash like: > > Program terminated with signal SIGSEGV, Segmentation fault. > > This patch assign proper ph value to ff. Thanks,

[PATCH] perf: assign proper ff->ph in perf_event__synthesize_features()

2019-06-19 Thread Song Liu
bpf/btf write_* functions need ff->ph->env. With this missing, pipe-mode (perf record -o -) would crash like: Program terminated with signal SIGSEGV, Segmentation fault. This patch assign proper ph value to ff. Cc: sta...@vger.kernel.org #v5.1+ Fixes: 606f972b1361 ("perf bpf: Save bpf_prog_in