Thread (24 messages) flat view 24 messages, 3 authors, 2019-01-24

Re: [PATCH v11 perf, bpf-next 7/9] perf tools: synthesize PERF_RECORD_* for loaded BPF programs

From: Arnaldo Carvalho de Melo <acme@kernel.org>
Date: 2019-01-24 09:49:07
Also in: lkml

Em Tue, Jan 22, 2019 at 07:24:43PM +0000, Song Liu escreveu:
quoted hunk ↗ jump to hunk
+#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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help