Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753594AbbHKW2O (ORCPT ); Tue, 11 Aug 2015 18:28:14 -0400 Received: from smtprelay0031.hostedemail.com ([216.40.44.31]:41557 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752615AbbHKW2N (ORCPT ); Tue, 11 Aug 2015 18:28:13 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2553:2559:2562:2689:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3872:3874:4250:5007:6261:7875:7903:9010:10004:10226:10400:10848:10967:11026:11232:11658:11914:12043:12296:12517:12519:12740:13069:13138:13231:13311:13357: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: cake44_d17ae519c93f X-Filterd-Recvd-Size: 1956 Date: Tue, 11 Aug 2015 18:28:08 -0400 From: Steven Rostedt To: Daniel Wagner Cc: linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH v0] tracing: Allow triggers to filter for CPU ids and process names Message-ID: <20150811182808.75c9cf0f@gandalf.local.home> In-Reply-To: <1439210146-24707-1-git-send-email-daniel.wagner@bmw-carit.de> References: <1439210146-24707-1-git-send-email-daniel.wagner@bmw-carit.de> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; 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: 1284 Lines: 37 On Mon, 10 Aug 2015 14:35:46 +0200 Daniel Wagner wrote: > By extending the filter rules by more generic fields > we can write triggers filters like > > echo 'stacktrace if cpu == 1' > \ > /sys/kernel/debug/tracing/events/raw_syscalls/sys_enter/trigger > > or > > echo 'stacktrace if comm == sshd' > \ > /sys/kernel/debug/tracing/events/raw_syscalls/sys_enter/trigger > > CPU and COMM are not part of struct trace_entry. We could add the two > new fields to ftrace_common_field list and fix up all depending > sides. But that looks pretty ugly. Another thing I would like to > avoid that the 'format' file contents changes. > > All this can be avoided by introducing another list which contains > non field members of struct trace_entry. > > Signed-off-by: Daniel Wagner > Cc: Steven Rostedt > Cc: Ingo Molnar > Cc: linux-kernel@vger.kernel.org v0? Expect more revisions? ;-) Looks fine. I pulled it into my queue. -- 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/