Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753490AbbHUNeq (ORCPT ); Fri, 21 Aug 2015 09:34:46 -0400 Received: from mail.kernel.org ([198.145.29.136]:42424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbbHUNep (ORCPT ); Fri, 21 Aug 2015 09:34:45 -0400 Date: Fri, 21 Aug 2015 10:34:41 -0300 From: Arnaldo Carvalho dn Melo To: Jiri Olsa Cc: Dean Nelson , a.p.zijlstra@chello.org, mingo@redhat.com, rostedt@goodmis.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org Subject: Re: [PATCH v3] tools lib traceevent: add checks for returned EVENT_ERROR type Message-ID: <20150821133441.GE3154@kernel.org> References: <20150820151632.13927.13791.email-sent-by-dnelson@teal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150820151632.13927.13791.email-sent-by-dnelson@teal> X-Url: http://acmel.wordpress.com 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 Content-Length: 1584 Lines: 43 Em Thu, Aug 20, 2015 at 11:16:32AM -0400, Dean Nelson escreveu: > Running the following perf-stat command on an arm64 system produces the > following result... > [root@aarch64 ~]# perf stat -e kmem:mm_page_alloc -a sleep 1 > Warning: [kmem:mm_page_alloc] function sizeof not defined > Warning: Error: expected type 4 but read 0 > Segmentation fault > [root@aarch64 ~]# Jiri, while testing this I noticed that when running as !root I get: $ perf stat -e kmem:mm_page_alloc -a sleep 1 event syntax error: 'kmem:mm_page_alloc' \___ unknown tracepoint Run 'perf list' for a list of valid events usage: perf stat [] [] -e, --event event selector. use 'perf list' to list available events [acme@zoo linux]$ Which could be a bit more friendly if it noticed that it may be a tracepoint event and that if that is the case, the user needs to have tracefs remounted with suitable permissions to be able to use tracepoints, something like 'perf trace' does: [acme@zoo linux]$ trace ls Error: No permissions to read /sys/kernel/debug/tracing/events/raw_syscalls/sys_(enter|exit) Hint: Try 'sudo mount -o remount,mode=755 /sys/kernel/debug' [acme@zoo linux]$ Take that as a suggestion as you're more familiar with the event parsing code :-) - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/