Messages in this thread | | | Date | Mon, 14 Sep 2015 18:02:38 -0300 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH 4/5] perf tools: Propagate error info from tp_format |
| |
Em Mon, Sep 14, 2015 at 05:53:03PM -0300, Arnaldo Carvalho de Melo escreveu: > Ok continuing, found two more problems in this patch, fixed as follows, > merging.
> - Arnaldo
> +++ b/tools/perf/tests/mmap-basic.c > @@ -65,7 +65,7 @@ int test__basic_mmap(void) > > snprintf(name, sizeof(name), "sys_enter_%s", syscall_names[i]); > evsels[i] = perf_evsel__newtp("syscalls", name); > - if (evsels[i] == NULL) { > + if (IS_ERR(evsels[i]) == NULL) {
modulo the == NULL ;-)
> pr_debug("perf_evsel__new\n"); > goto out_delete_evlist; > }
| |