From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752167AbbCaVaw (ORCPT ); Tue, 31 Mar 2015 17:30:52 -0400 Received: from ipmail06.adl2.internode.on.net ([150.101.137.129]:20350 "EHLO ipmail06.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752379AbbCaVah (ORCPT ); Tue, 31 Mar 2015 17:30:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BBCQCwERtVPM+HLHlcgwaBLoZBrBoBAQEGmQ0EAgKBRE0BAQEBAQEGAQEBATg7hBUBBScTHCMQCAMYCSUPBSUDBxoTiC7OFQEBAQEGAgEfGIV3hRqEeAeDF4EWBZpWgR6GDYQViHyEJCoxgkMBAQE Date: Wed, 1 Apr 2015 08:30:05 +1100 From: Dave Chinner To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Namhyung Kim , Masami Hiramatsu , Mathieu Desnoyers Subject: Re: [RFC][PATCH 00/10] tracing: Use TRACE_DEFINE_ENUM() to show enum values Message-ID: <20150331213005.GA8465@dastard> References: <20150327213704.857765144@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150327213704.857765144@goodmis.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 27, 2015 at 05:37:04PM -0400, Steven Rostedt wrote: > > As there are many tracepoints that use __print_symbolic() to translate > numbers into ASCII strings, and several of these translate enums as > well, it causes a problem for user space tools that read the tracepoint > format files and have to translate the binary data to their associated > strings. ..... > Steven Rostedt (Red Hat) (10): > tracing: Add TRACE_DEFINE_ENUM() macro to map enums to their values > tracing: Allow for modules to export their trace enums as well > x86/tlb/trace: Export enums in used by tlb_flush tracepoint > net/9p/tracing: Export enums in tracepoints to userspace > f2fs: Export the enums in the tracepoints to userspace > irq/tracing: Export enums in tracepoints to user space > mm: tracing: Export enums in tracepoints to user space > SUNRPC: Export enums in tracepoints to user space > v4l: Export enums used by tracepoints to user space > writeback: Export enums used by tracepoint to user space So are you expecting subsystem maintainers to modify their tracing code to do this, or is this just the first round of changes you are making? e.g: $ grep print_symbolic fs/xfs/xfs_trace.h __print_symbolic(__entry->trans_type, XFS_TRANS_TYPES), __print_symbolic(__entry->type, XFS_LI_TYPE_DESC), __print_symbolic(__entry->type, XFS_LI_TYPE_DESC), __print_symbolic(__entry->type, XFS_IO_TYPES), __print_symbolic(__entry->type, XFS_ALLOC_TYPES), __print_symbolic(__entry->otype, XFS_ALLOC_TYPES), __print_symbolic(__entry->which, XFS_SWAPEXT_INODES), __print_symbolic(__entry->format, XFS_INODE_FORMAT_STR), __print_symbolic(__entry->type, XFS_LI_TYPE_DESC), $ And a quick git grep indicates there are a lot that you haven't converted in this patchset... Cheers, Dave. -- Dave Chinner david@fromorbit.com