[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131003123820.GA12004@gmail.com>
Date: Thu, 3 Oct 2013 14:38:21 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Ramkumar Ramachandra <artagnon@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>, Jiri Olsa <jolsa@...hat.com>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>
Subject: Re: [PATCH] perf tool: report user-friendly error from timechart
* Ramkumar Ramachandra <artagnon@...il.com> wrote:
> + /* Perform a quick sanity check */
> + if (!is_valid_tracepoint("power:cpu_frequency")) {
> + fprintf(stderr, "Error:\tNo permissions to read $debugfs/tracing/events/power/cpu_frequency\n");
> + fprintf(stderr, "Hint:\tChange the permissions of debugfs: /sys/kernel/debug\n");
> + fprintf(stderr, "\tThe directory will be present if your kernel was compiled with debugfs support.\n");
Is missing permissions the only way how is_valid_tracepoint() can fail?
What if debugfs has the right permissions but CONFIG_TRACEPOINTS is
disabled in the kernel?
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists