Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932833AbbFITqO (ORCPT ); Tue, 9 Jun 2015 15:46:14 -0400 Received: from mail-qg0-f50.google.com ([209.85.192.50]:34771 "EHLO mail-qg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932611AbbFITqG (ORCPT ); Tue, 9 Jun 2015 15:46:06 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Tue, 9 Jun 2015 15:51:53 -0400 (EDT) To: David Ahern cc: Vince Weaver , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Stephane Eranian , Jiri Olsa , Steven Rostedt Subject: Re: perf/ftrace: does PERF_EVENT_IOC_SET_FILTER serve any purpose? In-Reply-To: <55773DA3.6070808@gmail.com> Message-ID: References: <55773DA3.6070808@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1134 Lines: 34 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. Vince -- 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/