This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Fri May 10 20:37:26 2024 >From spaans Thu Apr 2 04:13:31 2015 Received: from pop.ziggo.nl [212.54.42.19] by squeeze.vs19.net with POP3 (fetchmail-6.3.21) for (single-drop); Thu, 02 Apr 2015 04:13:31 +0200 (CEST) Received: from md5.tb.mail.iss.local ([212.54.42.145]) by mc5.tb.mail.iss.local (Dovecot) with LMTP id ohwmHJ+lHFWDWQAAh0Kp1A for ; Thu, 02 Apr 2015 04:13:10 +0200 Received: from mx18.tb.mail.iss.as9143.net ([212.54.42.145]) by md5.tb.mail.iss.local (Dovecot) with LMTP id JzSfDLXdCVWXYQAA7jSZHA ; Thu, 02 Apr 2015 04:17:13 +0200 Received: from vger.kernel.org ([209.132.180.67]) by mx18.tb.mail.iss.as9143.net with esmtp (Exim 4.82) (envelope-from ) id 1YdUd4-00045M-2o for bmw12-lkml@ziggo.nl; Thu, 02 Apr 2015 04:13:10 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbbDBCM4 (ORCPT ); Wed, 1 Apr 2015 22:12:56 -0400 Received: from mail.kernel.org ([198.145.29.136]:33829 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbbDBCJq (ORCPT ); Wed, 1 Apr 2015 22:09:46 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5378203A1; Thu, 2 Apr 2015 02:09:43 +0000 (UTC) Received: from gandalf.local.home (cpe-67-246-153-56.stny.res.rr.com [67.246.153.56]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E19732037D; Thu, 2 Apr 2015 02:09:41 Received: from rostedt by gandalf.local.home with local (Exim 4.84) (envelope-from ) id 1YdUZg-0005oV-S7; Wed, 01 Apr 2015 22:09:40 -0400 Message-Id: <20150402020940.802720397@goodmis.org> User-Agent: quilt/0.61-1 Date: Wed, 01 Apr 2015 21:56:53 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton , Namhyung Kim , Masami Hiramatsu , Mathieu Desnoyers Subject: [RFC][PATCH 05/17 v2] tracing: Update trace-event-sample with TRACE_SYSTEM_VAR documentation References: <20150402015648.249824760@goodmis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline; filename=0005-tracing-Update-trace-event-sample-with-TRACE_SYSTEM_.patch X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-Id: X-Mailing-List: linux-kernel@vger.kernel.org X-Ziggo-spamsetting: Instelling=Gemiddeld Scorelimiet=14 X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.1 cv=VL5x5Y7X c=1 sm=0 tr=0 a=UK1r566ZdBxH71SXbqIOeA==:17 a=GP-zi_oJd2oA:10 a=bbbx4UPp9XUA:10 a=IkcTkHD0fZMA:10 a=meVymXHHAAAA:8 a=VwQbUJbxAAAA:8 a=cIF5Tx0qAAAA:8 a=ayC55rCoAAAA:8 a=e9J7MTPGsLIA:10 a=W0vUJOdyAAAA:8 a=olAqfFJtt-v4cWZGsq X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No From: "Steven Rostedt (Red Hat)" Add documentation about TRACE_SYSTEM needing to be alpha-numeric or with underscores, and that if it is not, then the use of TRACE_SYSTEM_VAR is required to make something that is. An example of this is shown in samples/trace_events/trace-events-sample.h Signed-off-by: Steven Rostedt --- samples/trace_events/trace-events-sample.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events-sample.h index a2c8b02b6359..19405f18cc8a 100644 --- a/samples/trace_events/trace-events-sample.h +++ b/samples/trace_events/trace-events-sample.h @@ -22,7 +22,25 @@ * protection, just like TRACE_INCLUDE_FILE. */ #undef TRACE_SYSTEM -#define TRACE_SYSTEM sample +#define TRACE_SYSTEM sample-trace + +/* + * TRACE_SYSTEM is expected to be a C valid variable (alpha-numeric + * and underscore), although it may start with numbers. If for some + * reason it is not, you need to add the following lines: + */ +#undef TRACE_SYSTEM_VAR +#define TRACE_SYSTEM_VAR sample_trace +/* + * But the above is only needed if TRACE_SYSTEM is not alpha-numeric + * and underscored. By default, TRACE_SYSTEM_VAR will be equal to + * TRACE_SYSTEM. As TRACE_SYSTEM_VAR must be alpha-numeric, if + * TRACE_SYSTEM is not, then TRACE_SYSTEM_VAR must be defined with + * only alpha-numeric and underscores. + * + * The TRACE_SYSTEM_VAR is only used internally and not visible to + * user space. + */ /* * Notice that this file is not protected like a normal header. -- 2.1.4 -- 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/