lkml.org 
[lkml]   [2015]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [RFC PATCH v3 32/37] perf bpf: Parse probe points of eBPF programs during preparation
On Sun, May 17, 2015 at 10:56:57AM +0000, Wang Nan wrote:

SNIP

> + if (pev)
> + clear_perf_probe_event(pev);
> + return err;
> +}
> +
> int bpf_prepare_load(const char *filename)
> {
> struct bpf_object *obj;
> @@ -81,6 +150,8 @@ int bpf_prepare_load(const char *filename)
> return -EINVAL;
> }
> pr_debug("bpf: add program '%s'\n", title);
> +
> + bpf_do_config(params.nr_progs - 1, title);

shouldn't you check&pass return value of bpf_do_config ?

jirka


\
 
 \ /
  Last update: 2015-05-22 20:01    [W:0.508 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site