Re: [PATCH] perf sched timehist: Improve error message when analyzing wrong file

From: David Ahern
Date: Tue Nov 29 2016 - 15:17:59 EST


On 11/29/16 1:14 PM, Arnaldo Carvalho de Melo wrote:
> It uses things like:
>
> if (kmem_page) {
> struct perf_evsel *evsel;
>
> evsel = perf_evlist__find_tracepoint_by_name(session->evlist,
> "kmem:mm_page_alloc");
> if (evsel == NULL) {
> pr_err(errmsg, "page", "page");
> goto out_delete;
> }
>

I thought something like existed but did not find it looking at kvm and sched commands. Will re-spin to be consistent with kmem.