lkml.org 
[lkml]   [2023]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 2/8] perf bpf filter: Implement event sample filtering
    On Tue, Feb 21, 2023 at 3:54 AM Jiri Olsa <olsajiri@gmail.com> wrote:
    >
    > On Sat, Feb 18, 2023 at 10:13:23PM -0800, Namhyung Kim wrote:
    >
    > SNIP
    >
    > > +#define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y))
    > > +
    > > +int perf_bpf_filter__prepare(struct evsel *evsel)
    > > +{
    > > + int i, x, y, fd;
    > > + struct sample_filter_bpf *skel;
    > > + struct bpf_program *prog;
    > > + struct bpf_link *link;
    > > + struct perf_bpf_filter_expr *expr;
    > > +
    > > + skel = sample_filter_bpf__open();
    > > + if (!skel) {
    > > + pr_err("Failed to open perf sample-filter BPF skeleton\n");
    > > + return -1;
    > > + }
    > > +
    > > + bpf_map__set_max_entries(skel->maps.filters, MAX_FILTERS);
    >
    > is this needed? max_entries is defined in the bpf object

    Nop, will remove.

    Thanks,
    Namhyung

    \
     
     \ /
      Last update: 2023-03-27 00:32    [W:2.114 / U:0.312 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site