Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932938AbbFITzR (ORCPT ); Tue, 9 Jun 2015 15:55:17 -0400 Received: from smtprelay0151.hostedemail.com ([216.40.44.151]:39364 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751955AbbFITzL (ORCPT ); Tue, 9 Jun 2015 15:55:11 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2895:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4605:5007:6261:7875:8778:9010:10004:10400:10450:10455:10848:10967:11026:11232:11473:11658:11914:12043:12050:12114:12438:12517:12519:12740:13069:13311:13357:14096:14097:19904:19999:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: farm34_67178af61b901 X-Filterd-Recvd-Size: 2582 Date: Tue, 9 Jun 2015 15:55:06 -0400 From: Steven Rostedt To: Vince Weaver Cc: David Ahern , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Stephane Eranian , Jiri Olsa Subject: Re: perf/ftrace: does PERF_EVENT_IOC_SET_FILTER serve any purpose? Message-ID: <20150609155506.3c7d5fc3@gandalf.local.home> In-Reply-To: References: <55773DA3.6070808@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1610 Lines: 43 On Tue, 9 Jun 2015 15:51:53 -0400 (EDT) Vince Weaver wrote: > On Tue, 9 Jun 2015, David Ahern wrote: > > > On 6/9/15 12:30 PM, Vince Weaver wrote: > > > Hello > > > > > > I've been working on documenting the PERF_EVENT_IOC_SET_FILTER ioctl. > > > > > > I've been trying for the past 2 days and have been unable to get any > > > result except EINVAL. > > > > > > Does anyone ever use this ioctl? Does anyone know how to use this ioctl? > > > > yes and yes it works. > > > > perf record -e irq:irq_handler_entry --filter irq==28 \ > > -e irq:softirq_entry --filter vec==6 -a \ > > -- sleep 5 > > # perf record -e irq:irq_handler_entry --filter irq==28 -e irq:softirq_entry --filter vec==6 -a -- sleep 5 > invalid or unsupported event: 'irq:irq_handler_entry' > Run 'perf list' for a list of valid events > > perf list doesn't show any tracepoint events, despite having debugfs > mounted and running as root and /sys/kernel/debug/tracing/events/ being > populated. > What kernel are you using? You may need to update perf. We switched to a tracefs filesystem, but the old perf wont read any events if it's not located in debugfs. That is, it actually tested which filesystem the event files were mounted on, and if they didn't match the debugfs mount type, it ignored them. That was fixed recently. -- Steve -- 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/