Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1991553pxb; Sat, 27 Feb 2021 07:00:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7YyqAb4emY4dDlYHz5DuVP8djQGklE4GetB0FyODbcO+YpFabirPBGjdKK/bSiQdt6H6x X-Received: by 2002:a05:6402:215:: with SMTP id t21mr8455766edv.363.1614438035385; Sat, 27 Feb 2021 07:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614438035; cv=none; d=google.com; s=arc-20160816; b=FKBi8GmVf+5ZWcq+gwKJTvRnrASk5QaSar8JAV5cXTaD0ny3iRFdOXw9tmlabmT0uv AZ8WlLw/dy1aqPwNCpJ9Xtq/sw0MLaJlHEsUCbQuVmeNJIxBZum+xSRnDu6teVEnlbVY z8Hlbo46yU6JCgS/PYftsIV3NYJk5zf86bUF/DvpsOqt9CHd0KmwH21WZHzPUgkCYSZG bIiz5YywrJXs8dB2jHIgqbk5rUt23mDwP9X6ko0WiCnZNgUPiaG81DCBJrh8fwKYgxjR SbQRgxCBCQLBToaMEN9wdtVk30Hyti0UUjiQWu3sZs4MppKHoMEy1st9vKsVRPNB9ufX ZpDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=MCrspFPJGRzY5FpUnmo/IZhQAaFubBHiE9aGg5yL65g=; b=o3a7g8LR5KZsR7Dlh2O9vOmjxk3YJGJc89HpGnUbgzmkrrsoPEbwTf6aN8FwifygD1 hl0wJiMD1AV+L7DvUTY2R0i1LiDM42j1QLp7aRkA3zxmBSPRY3F7Lb1L+9nKijrygKQR sYGQjlwRdOt+OVBU2QefKqAe5N2leeMWGlYOaXvEuernwv2OGsYsYdBbTSCBx5emXQ2Q hpoJzrSKbx/0SPzd7SwLXWCb6jqK2xOtFVL0z5DgM4UPuOl2m+jpMg6ZVGRp3GNNyWJj HpQTh9nn86F4UyBv4NrE32VSodgTzpiNRB7P40qqG6aBu4VTaMmlKRmZtAsgCjw+L+bk HNBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si8169745edd.608.2021.02.27.07.00.12; Sat, 27 Feb 2021 07:00:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbhB0OuB (ORCPT + 99 others); Sat, 27 Feb 2021 09:50:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:43084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbhB0OuA (ORCPT ); Sat, 27 Feb 2021 09:50:00 -0500 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0481164EDB; Sat, 27 Feb 2021 14:49:17 +0000 (UTC) Date: Sat, 27 Feb 2021 09:49:16 -0500 From: Steven Rostedt To: kernel test robot Cc: Chaitanya Kulkarni , 0day robot , LKML , lkp@lists.01.org, axboe@kernel.dk, viro@zeniv.linux.org.uk, mingo@redhat.com, johannes.thumshirn@wdc.com, damien.lemoal@wdc.com, bvanassche@acm.org, dongli.zhang@oracle.com, aravind.ramesh@wdc.com, joshi.k@samsung.com, niklas.cassel@wdc.com, hch@lst.de, osandov@fb.com, martin.petersen@oracle.com, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [blktrace] c055908abe: WARNING:at_kernel/trace/trace.c:#create_trace_option_files Message-ID: <20210227094916.701a8a50@oasis.local.home> In-Reply-To: <20210227114440.GA22871@xsang-OptiPlex-9020> References: <20210225070231.21136-34-chaitanya.kulkarni@wdc.com> <20210227114440.GA22871@xsang-OptiPlex-9020> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 27 Feb 2021 19:44:40 +0800 kernel test robot wrote: > [ 20.216017] WARNING: CPU: 0 PID: 1 at kernel/trace/trace.c:8370 create_trace_option_files (kbuild/src/consumer/kernel/trace/trace.c:8370 (discriminator 1)) > [ 20.218480] Modules linked in: > [ 20.219395] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.11.0-09341-gc055908abe0d #1 > [ 20.221182] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 > [ 20.224540] EIP: create_trace_option_files (kbuild/src/consumer/kernel/trace/trace.c:8370 (discriminator 1)) > [ 20.225816] Code: d5 01 83 15 2c b7 08 d5 00 83 c0 01 39 c8 0f 84 c7 00 00 00 8b 14 c7 39 72 44 75 df 83 05 10 b7 08 d5 01 83 15 14 b7 08 d5 00 <0f> 0b 83 05 18 b7 08 d5 01 83 15 1c b7 08 d5 00 83 05 20 b7 08 d5 Looks to be from this: > +static struct tracer blk_tracer_ext __read_mostly = { > + .name = "blkext", > + .init = blk_tracer_init, > + .reset = blk_tracer_reset, > + .start = blk_tracer_start, > + .stop = blk_tracer_stop, > + .print_header = blk_tracer_print_header, > + .print_line = blk_tracer_print_line_ext, > + .flags = &blk_tracer_flags, ^^^ As blk_tracer already registers those flags, when it gets registered as a tracer, and flag names can not be duplicated. I could fix the infrastructure to detect the same set of flags being registered by two different tracers, but in the mean time, it may still work to use the blk_trace_flags from blk_tracer, and keep .flags NULL here. -- Steve > + .set_flag = blk_tracer_set_flag, > +}; > +