Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbbBKMvr (ORCPT ); Wed, 11 Feb 2015 07:51:47 -0500 Received: from smtprelay0053.hostedemail.com ([216.40.44.53]:36545 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751892AbbBKMvp (ORCPT ); Wed, 11 Feb 2015 07:51:45 -0500 X-Session-Marker: 6E657665747340676F6F646D69732E6F7267 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:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2901:2918:3138:3139:3140:3141:3142:3353:3622:3865:3867:3868:3870:3871:3872:3873:3874:5007:6261:6742:7875:10004:10400:10848:10967:11026:11232:11473:11658:11914:12296:12517:12519:12740:13069:13161:13180:13229:13255:13311:13357:14096:14097: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: pull99_f0f8eb726c46 X-Filterd-Recvd-Size: 2741 Date: Wed, 11 Feb 2015 07:51:42 -0500 From: Steven Rostedt To: Alexei Starovoitov Cc: Ingo Molnar , Namhyung Kim , Arnaldo Carvalho de Melo , Jiri Olsa , Masami Hiramatsu , Linux API , Network Development , LKML , Linus Torvalds , Peter Zijlstra , "Eric W. Biederman" Subject: Re: [PATCH v3 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls Message-ID: <20150211075142.7d0f8ca1@gandalf.local.home> In-Reply-To: References: 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: 1646 Lines: 43 On Tue, 10 Feb 2015 22:33:05 -0800 Alexei Starovoitov wrote: > fair enough. > Something like TRACE_MARKER(arg1, arg2) that prints > it was hit without accessing the args would be enough. > Without any args it is indeed a 'fast kprobe' only. > Debug info would still be needed to access > function arguments. > On x64 function entry point and x64 abi make it easy > to access args, but i386 or kprobe in the middle > lose visibility when debug info is not available. > TRACE_MARKER (with few key args that function > is operating on) is enough to achieve roughly the same > as kprobe without debug info. Actually, what about a TRACE_EVENT_DEBUG(), that has a few args and possibly a full trace event layout. The difference would be that the trace events do not show up unless you have "trace_debug" on the command line. This should prevent applications from depending on them. I could even do the nasty dmesg output like I do with trace_printk()s, that would definitely keep a production kernel from adding it by default. When trace_debug is not there, the trace points could still be accessed but perhaps only via bpf, or act like a simple trace marker. Note, if you need ids, I rather have them in another directory than tracefs. Make a eventfs perhaps that holds these. I rather keep tracefs simple. This is something that needs to probably be discussed at bit. -- 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/