Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755007AbbDTOYT (ORCPT ); Mon, 20 Apr 2015 10:24:19 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.227]:9958 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752730AbbDTOYR (ORCPT ); Mon, 20 Apr 2015 10:24:17 -0400 Date: Mon, 20 Apr 2015 10:24:14 -0400 From: Steven Rostedt To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , David Ahern , Frederic Weisbecker , He Kuang , Ingo Molnar , Jeremie Galarneau , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Sebastian Andrzej Siewior , Tom Zanussi , Wang Nan , lkml Subject: Re: [PATCH 5/7] tools lib traceevent: Add alias field to struct format_field Message-ID: <20150420142414.GD24936@home.goodmis.org> References: <1429372220-6406-1-git-send-email-jolsa@kernel.org> <1429372220-6406-6-git-send-email-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429372220-6406-6-git-send-email-jolsa@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 26 On Sat, Apr 18, 2015 at 05:50:18PM +0200, Jiri Olsa wrote: > Introduce an 'alias' field to 'struct format_field' to be able > to use alternative name for the field. > > It is initialized with same string pointer as 'name' field. > The free logic checks the 'alias' pointer being reset by user > and frees it. > > This will be handy when converting data into CTF, where each > field within event needs to have a unique name (while this > is not required for tracepoint). Converter can easily assign > unique name into the format_field struct. > > Suggested-by: Steven Rostedt > Link: http://lkml.kernel.org/n/tip-qwyq8blnfkg6s5vlbrvn1en3@git.kernel.org > Signed-off-by: Jiri Olsa Acke-by: Steven Rostedt -- 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/