Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp495440lqp; Tue, 11 Jun 2024 10:10:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVB4nw1fkNNAtBA4tQxhqBxYEA+fTLsZN3DJyRvtvCIktvaz/1OYoGmhcWW7pNXzDnNVd7FvvZXeUnJhu2Coz9+4YjTQ9+4B+43Mbffg== X-Google-Smtp-Source: AGHT+IEU220eOpgKINrlqIf1phETvXJyNNS1VyNV+M3TRGGle+jWF1JbAXjjaE6VH+Ht7XboGVU8 X-Received: by 2002:a17:902:680c:b0:1f7:2a95:f2d7 with SMTP id d9443c01a7336-1f72a95f584mr29068955ad.59.1718125856240; Tue, 11 Jun 2024 10:10:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718125856; cv=pass; d=google.com; s=arc-20160816; b=yFYVk4OtSajozddMblfXXtm+3D+gioPm5JDKAIUm746f8ygBo7CaOMYGv83pBPrd21 hTlsIZucfvY3QOxK8McajhP20p7PuEBrTcLuaDVc9h800T6BIicH/7pWX1SBxmC0EH1D uFp7GP7jfp11FcZ02q2n4XGMpm/bqrwynm4GiWo54BJcq+xj+JcjeAb6AzwXwaL1AnFK +CeWCEePeYbuH1lGVrboaQHZx1uiynilrnCLAHZ6+fOfFScjmIafXsgMT/MP7tEJyTdJ x7lF5Au42Kk5JClnRzhFa+Hro8mUTKBpL2syg6EeEQ4wwuCcFtTr3Usb9bVg6RoaYOLh 4jfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=3VVTPR0M/NALXqh4EpubQH9zbsUNZAmwZku1/KglkEk=; fh=YooqDMwgPYl/CV05iw2R7vsZl8iFZG20RLS6nCO4Q0Y=; b=R9qA3VLz/gTN3sLgbfVdcy3PmzRFLA6cHalyg4YjzKELAjeY/i1CcVdNW1ci01Cqve EZTQBOwqOeulBiObmsV1PCTAH3WIYn5VIlvEZ2mXC/HDC1fUSS3m63NqXLOwN0XEFT1+ Fa16w+HnMYQZ04kOEID/jndIBpC0Vaet9n3HTX82iQ23eZ6dbBZg0fuIkrBc16LrIi4I jrmbu+l2n3U0VJPbW0kOdwGTYD7QsiMRqAV71mwKsld7l3rn14B9wHq/gkYbXvFVRzT9 VU1uB/lSe2QCi6M2sCF1EBPV5yDaqUAiVU4lpJ3URx9/0sC457ynQI1F98p9FLjYv0O6 FKTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=PXJxWVIS; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-210307-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210307-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ada2fe7eead31-48d73ffdf8bsi1379774137.612.2024.06.11.10.10.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210307-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=PXJxWVIS; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-210307-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210307-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7DAEA1C24692 for ; Tue, 11 Jun 2024 17:09:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8B454644C; Tue, 11 Jun 2024 17:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="PXJxWVIS" Received: from 008.lax.mailroute.net (008.lax.mailroute.net [199.89.1.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D7201D556; Tue, 11 Jun 2024 17:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718125761; cv=none; b=Q8rK4QkTpv7yZnDu243TYj7AJ7ijXdaWxKhXb98b5pddQX+gMRDsIiNilneeN9h/7nL11M7SvikLubUMFafCV89Ar5niCkkQO4PMXHbCwtEDytpiPR/bNLg9Mi6iG5IEdoiV4r7tmYURvAJ/JJnFA32o/Ak4t4BHMoWfqzu0dU0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718125761; c=relaxed/simple; bh=dYgsw05Lo16Ag/IxvPvdK+EMqjmf3VE9WltXmI0XKMk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eJLVKUbSpdDEkE1wRtzT7nPvg3+cGOVrSb84KuffYS4K2XseOYaAdy5/YCjwTT+GrmofCBMoAZVQHYOpUVpDe7egAEn/2cwk0+Yem0p0B//ZKvb5gLYq+94JsayVScjxFVvUHHvDJHogVTd2D7qzy7Nqnew08V3pCKCiXuoNpws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=PXJxWVIS; arc=none smtp.client-ip=199.89.1.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4VzFWy4pNsz6CmR07; Tue, 11 Jun 2024 17:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1718125754; x=1720717755; bh=3VVTPR0M/NALXqh4EpubQH9z bsUNZAmwZku1/KglkEk=; b=PXJxWVISEXZjM3Dcrc21AGooxtc1JJQ1Mw6FIDyL XvfoFjvtUNoZFchtRQCezqGc7dsFBBe4d1TP6zj5ApBYmY68rr9tPNsS3OsAVF1b wJg3oJ9qb2vTRNwkeOCQdFy4+ufWuV28dbMUK8xAz33OLSNLGX248x1s2eJVlzo4 q4oHLQ1hHwrNobcdU6qp/IoZ9TV8bO7B09CaAmzNq8jg3x0nux2LwlMZL5rl4d9K LdJLK65TBlgipBqRy8onUDMTBmHX+OwPjdhqqTrtnx1oOh2gmByyn9gzGPL975EC cI/qWNFidFMG9XwTVr6mSafPLsMBDAoQFCG5qOzAJOltSw== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id ljpgvnq9GFne; Tue, 11 Jun 2024 17:09:14 +0000 (UTC) Received: from [100.96.154.26] (unknown [104.132.0.90]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4VzFWr5phWz6Cnv3Q; Tue, 11 Jun 2024 17:09:12 +0000 (UTC) Message-ID: Date: Tue, 11 Jun 2024 10:09:12 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4] block: Add ioprio to block_rq tracepoint To: Steven Rostedt Cc: Dongliang Cui , axboe@kernel.dk, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, ebiggers@kernel.org, ke.wang@unisoc.com, hongyu.jin.cn@gmail.com, niuzhiguo84@gmail.com, hao_hao.wang@unisoc.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, akailash@google.com, cuidongliang390@gmail.com References: <20240611073519.323680-1-dongliang.cui@unisoc.com> <86eb3dd0-77a1-4d1d-8e62-38c46bd7563a@acm.org> <20240611125440.6d095270@gandalf.local.home> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20240611125440.6d095270@gandalf.local.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/11/24 9:54 AM, Steven Rostedt wrote: > On Tue, 11 Jun 2024 09:26:54 -0700 > Bart Van Assche wrote: > >> On 6/11/24 12:35 AM, Dongliang Cui wrote: >>> +#define IOPRIO_CLASS_STRINGS \ >>> + { IOPRIO_CLASS_NONE, "none" }, \ >>> + { IOPRIO_CLASS_RT, "rt" }, \ >>> + { IOPRIO_CLASS_BE, "be" }, \ >>> + { IOPRIO_CLASS_IDLE, "idle" }, \ >>> + { IOPRIO_CLASS_INVALID, "invalid"} >> >> Shouldn't this array be defined in a C file instead of in a header file? > > The way the TRACE_EVENT() macro works, this will not work in a C file. Hmm ... if the above array is terminated with a { -1, NULL } sentinel and if __print_symbolic() is changed into trace_print_symbols_seq(p, ...) then the above array can be moved into a C file, isn't it? Thanks, Bart.