Thread (7 messages) 7 messages, 5 authors, 2017-12-12

Re: [PATCH net-next v4 1/2] bpf/tracing: allow user space to query prog array on the same tp

flat view

From: Alexei Starovoitov <hidden>
Date: 2017-12-12 16:55:12

On 12/12/17 1:03 AM, Peter Zijlstra wrote:
On Mon, Dec 11, 2017 at 11:39:02AM -0800, Yonghong Song wrote:
quoted
The usage:
  struct perf_event_query_bpf *query = malloc(...);
  query.ids_len = ids_len;
  err = ioctl(pmu_efd, PERF_EVENT_IOC_QUERY_BPF, &query);
You didn't spot the fixes to your changelog ;-) The above should read
something like:

    struct perf_event_query_bpf *query =
        malloc(sizeof(*query) + sizeof(u32) * ids_len);
    query->ids_len = ids_len;
    err = ioctl(pmu_efd, PERF_EVENT_IOC_QUERY_BPF, query);
sure. I fixed up this nit in commit log of patch 1 and in test_progs.c
of patch 2.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help