Em Tue, Jan 22, 2019 at 07:24:43PM +0000, Song Liu escreveu: > +#include "machine.h" > #include "bpf-event.h" > #include "debug.h" > #include "symbol.h" > @@ -187,7 +188,7 @@ static int perf_event__synthesize_one_bpf_prog(struct > perf_tool *tool, > *bpf_event = (struct bpf_event){ > .header = { > .type = PERF_RECORD_BPF_EVENT, > - .size = sizeof(struct bpf_event), > + .size = sizeof(struct bpf_event) + > machine->id_hdr_size, > }, > .type = PERF_BPF_EVENT_PROG_LOAD, > .flags = 0, > > Would you send the official patch? Or would you prefer me sending it?
Nevermind, I'll fix this, its just that I'm now travelling. - Arnaldo