Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1391329ybl; Fri, 24 Jan 2020 23:08:20 -0800 (PST) X-Google-Smtp-Source: APXvYqy7pXBuP7qKkwU+6BeIkAEZmSF0AE3ejiRfaW76zXENxF9nBMwN0HABifEQRN6r+CU9ZB0x X-Received: by 2002:aca:cc55:: with SMTP id c82mr1645054oig.165.1579936100452; Fri, 24 Jan 2020 23:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579936100; cv=none; d=google.com; s=arc-20160816; b=SabS4MR45Jlg3BIy2keS3qHLoo/mfgx0Botf8gyowJrgBeLg6/zatNbrg/tP6iEV4K YFKBzJTzlOGtyGxnJZFrGUUmreOaiZNDlLcXT4Pb6m/fBYTSE5ZDCEyJk7JbeY3Ox3/3 xNLzL64tzRUCRirjowWadxhqXRaMZhFUGb6DYO1RByJ02WX1g3LKcHOgjqRa+BwdrS4Y Hb5d9tbau4VemfpvdNgzz++mTTVVjq9VfZ8MzKrobTSQYSa2AmWJ5mTOXOCExYjj+mUz Uwg1+tRBPqRB+7NEvmbKreCqSrvlbFYjS0eZtTM8+ZPH/dLcYuehx5QFj5rgud4SjZK4 aftg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=HirxRa+vrtxBFHIaiscZ+oT25YpM7KctrTX1jqMyYio=; b=NCpafaJooApMFdM3Xu0SZ6b4Hd2uMJcPHmzMJtWXl9imWKBE3xB+tCljTZ9BOQPNhs nH721CvilDvbNY9/PL2YmuL1mXOJuGZidnBTvgMj3pYdl3T5eXqeh3PXnKh9sIuQxZlJ 7u/5k+9tgRN1SU9DpT7L/q1e/IbnqJGEZibNXq3JgwMMiuozYHJz7jpEyOpa7vY75NMD PpUP4TObESogmDEJSKlJRA8J82/6VxkYV4NPfrKYKU59zAHkzXam/WD0i4FJnj5UA8wo ocw1zUqCfCEom8hYXs7LLxXhccq95FigTtlG46WqppvzZ4TgqQuB+FR9pqRr95iUSFQm CGJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si4082748otr.258.2020.01.24.23.08.10; Fri, 24 Jan 2020 23:08:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726293AbgAYHD3 (ORCPT + 99 others); Sat, 25 Jan 2020 02:03:29 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:48018 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726145AbgAYHD3 (ORCPT ); Sat, 25 Jan 2020 02:03:29 -0500 Received: from callcc.thunk.org (rrcs-67-53-201-206.west.biz.rr.com [67.53.201.206]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 00P73Jcd021484 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Jan 2020 02:03:21 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 5E95B42014A; Sat, 25 Jan 2020 02:03:18 -0500 (EST) Date: Sat, 25 Jan 2020 02:03:18 -0500 From: "Theodore Y. Ts'o" To: Dmitry Monakhov Cc: linux-ext4@vger.kernel.org, darrick.wong@oracle.com Subject: Re: [PATCH 1/2] ext4: fix symbolic enum printing in trace output Message-ID: <20200125070318.GC1108497@mit.edu> References: <20191114200147.1073-1-dmonakhov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191114200147.1073-1-dmonakhov@gmail.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, Nov 14, 2019 at 08:01:46PM +0000, Dmitry Monakhov wrote: > Trace's macro __print_flags() produce raw event's decraration w/o knowing actual > flags value > > cat /sys/kernel/debug/tracing/events/ext4/ext4_ext_map_blocks_exit/format > .. > __print_flags(REC->mflags, "", { (1 << BH_New), > > For that reason we have to explicitly define it via special macro TRACE_DEFINE_ENUM() > Also add missed EXTENT_STATUS_REFERENCED flag. > > #Before patch > ext4:ext4_ext_map_blocks_exit: dev 253,0 ino 2 flags lblk 0 pblk 4177 len 1 mflags 0x20 ret 1 > ext4:ext4_ext_map_blocks_exit: dev 253,0 ino 12 flags CREATE lblk 0 pblk 34304 len 1 mflags 0x60 ret 1 > > #With patch > ext4:ext4_ext_map_blocks_exit: dev 253,0 ino 2 flags lblk 0 pblk 4177 len 1 mflags M ret 1 > ext4:ext4_ext_map_blocks_exit: dev 253,0 ino 12 flags CREATE lblk 0 pblk 34816 len 1 mflags NM ret 1 > > Signed-off-by: Dmitry Monakhov Thanks, applied. - Ted