From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753392AbbIKQQx (ORCPT ); Fri, 11 Sep 2015 12:16:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52820 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752660AbbIKQQu (ORCPT ); Fri, 11 Sep 2015 12:16:50 -0400 Date: Fri, 11 Sep 2015 18:16:47 +0200 From: Jiri Olsa To: Namhyung Kim Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , David Ahern , Ingo Molnar , Peter Zijlstra , Matt Fleming , =?iso-8859-1?Q?Rapha=EBl?= Beamonte Subject: Re: [PATCH 5/5] perf tools: Enhance parsing events tracepoint error output Message-ID: <20150911161647.GB20016@krava.brq.redhat.com> References: <1441615087-13886-1-git-send-email-jolsa@kernel.org> <1441615087-13886-6-git-send-email-jolsa@kernel.org> <20150910070030.GB18425@danjae.kornet> <20150910080537.GA19014@krava.brq.redhat.com> <20150911160931.GB3447@danjae.kornet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150911160931.GB3447@danjae.kornet> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 12, 2015 at 01:09:31AM +0900, Namhyung Kim wrote: > Hi Jiri, > > On Thu, Sep 10, 2015 at 10:05:37AM +0200, Jiri Olsa wrote: > > On Thu, Sep 10, 2015 at 04:00:30PM +0900, Namhyung Kim wrote: > > > On Mon, Sep 07, 2015 at 10:38:07AM +0200, Jiri Olsa wrote: > > > > Enhancing parsing events tracepoint error output. Adding > > > > more verbose output when the tracepoint is not found or > > > > the tracing event path cannot be access. > > > > > > > > $ sudo perf record -e sched:sched_krava ls > > > > event syntax error: 'sched:sched_krava' > > > > \___ unknown tracepoint > > > > > > > > Error: File /sys/kernel/debug/tracing//tracing/events/sched/sched_krava not found. > > > > Hint: Perhaps this kernel misses some CONFIG_ setting to enable this feature?. > > > > > > > > Run 'perf list' for a list of valid events > > > > ... > > > > > > > > $ perf record -e sched:sched_krava ls > > > > event syntax error: 'sched:sched_krava' > > > > \___ can't access trace events > > > > > > > > Error: No permissions to read /sys/kernel/debug/tracing//tracing/events/sched/sched_krava > > > > Hint: Try 'sudo mount -o remount,mode=755 /sys/kernel/debug' > > > > > > What about tracefs? On my system, tracefs is mounted on > > > /sys/kernel/debug/tracing thus I cannot access trace events after > > > remounting debugfs with mode=755. > > > > right, patch below keeps the actual mount and > > display proper info.. could you please try? > > Sure, this patch displays the proper tracefs mountpoint. But it also thanks > has a problem - if tracefs is mounted under debugfs, the access mode > of debugfs also affects, so in this case I had to change it both for > debugfs and tracefs.. hum, I wonder the error message needs to be that smart.. jirka