Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp936267lqs; Fri, 14 Jun 2024 09:41:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVuK133nTVCmMJ3NS9Tz8+IDY0BinEi3pFZ6S53HJD8T3rhhpOBNpRfgb011yHrgT//o1bQFpSJM2p1tBnF/T5mn+nQm/2+6MskInDQMg== X-Google-Smtp-Source: AGHT+IGfsGwGlYjR5kCR8RMirm0e1axozCUEebOjOk8Wf8fo2DZJ6QMKgNbpNYCVegLHG97mV0/D X-Received: by 2002:a17:906:15cb:b0:a6f:53f9:7974 with SMTP id a640c23a62f3a-a6f60dc511dmr294541666b.52.1718383279628; Fri, 14 Jun 2024 09:41:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718383279; cv=pass; d=google.com; s=arc-20160816; b=rbJFoi65y5SM7Y7T/SafEUzFOIe1YHTtbBw5YZPBNVLqghC5sFlWhbGLTOevJQ/PbV ADJ0IURFYQnKh/S1C8/VOFG0ce78txKMP5daImHyQinPj83r76eE3B/9VtyEB0esZltp 0Ed+e1b6FaBQ6/Yv53DCLwK45m0ioPl3VwZ6zDgmms0Qhf9IazTwRfZ5QYlH6Do2N4GS DqH+uEXhP1UAxj4GRxHW0zPilt17f7UYBoXnQai3qjINvrxvnMyGZtO+/UyxNEq5LwjP ec4fqv1yJk+XRLEuPKOOLxUMVZKeipAc10YBXthJD1aRrrl7Yk58O2whQfbxjh9L+Uo1 4bMw== 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=vJEHFGnp4hZ969Zf9Go58QtfZ40TWQLEFE9qlxIOIMQ=; fh=gOPq75GMcC1oaP+0JoanPPVgTuyn+w0KftYp/95VUcs=; b=R2G+Hi/LjcbvGztIX2DL2feBCoMf7ouG4aiMH/XcycUNi+5trh1tdLW2w4h5qGHZeu GfrcmQx//1xXGrkEQ4Gz7WWqeudcaxblhWzSbFlRUQbrnvdTX2Yxla6OzuVO8Oa6leKE 4rwPuArABABMoHg6M6UggUMOR90NT3Oq7YrAe9InePLX0crFnzRX1/E+Csa7wK1sdMDk 8d7Yco7H2A6w279Dj1UWiJiBecD6wIn4tbtFoh6kDM6FrRFp96S4qs2qQ9w1wJh8PSKu SZve5AmxvXw9A3PT8MCCsvlrNB1OFrKAdS6UOVvCmgyalwDTfOaN3MTbhlfNptfqOHeH IIRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=VfoSh5vt; 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-215284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e262f6si192344666b.715.2024.06.14.09.41.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 09:41:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=VfoSh5vt; 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-215284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215284-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 59B211F23FC9 for ; Fri, 14 Jun 2024 16:41:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56440190477; Fri, 14 Jun 2024 16:41:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="VfoSh5vt" Received: from 009.lax.mailroute.net (009.lax.mailroute.net [199.89.1.12]) (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 19D9B16DEB8; Fri, 14 Jun 2024 16:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718383264; cv=none; b=TGzftrV6G6Qjj9Ou43PyBuJITD5IWzhi8Lyg0murnZIWx1n+oU1gyOwtJU6t7Ic3yirRwpa4TvjZ5DbxFyXC69bNx4XVOeachLTjwBQMeM49LsrT267ToOphWd8nAxuIQu8/pw8NQJVrKP4DOOyH7RzYVBC22y7wZuXhqQYNh9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718383264; c=relaxed/simple; bh=wIraPb9VQXYm5SoNAvp0k7o3Dy4+lK3Cw/Pmy1Hz3GU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BlcfqFue4k2mOYT6o2MdcMGJu26JYwqpTKl+PFPTi0wEVRX/G5KCj2+UxKq/eJU5V//80MUWeJjUsd64oJeq/pkNTnBq+V/YWShKb9WVKdmhQ1beYRRGm+rmEU6rVpdqe35lJWmB6rmOoRoZCfCOdiiVUE7L8t0Yq6bnsBvNTFI= 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=VfoSh5vt; arc=none smtp.client-ip=199.89.1.12 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 009.lax.mailroute.net (Postfix) with ESMTP id 4W14ly4QbCzlgMVX; Fri, 14 Jun 2024 16:41:02 +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=1718383258; x=1720975259; bh=vJEHFGnp4hZ969Zf9Go58Qtf Z40TWQLEFE9qlxIOIMQ=; b=VfoSh5vtrT6+iBjkBnbhHkhykAykC4tL1yLzj/pT 8OBoOwmoi8es/CB1s/6ki8jqRWNJRG+x9QCv01ZG4KEkKXe9cNq6qGEB/0rzmNjd cUuFFLskqQvLtI6/u74H7AZEsmpEu4QZiH09cnQeQ9s7hMRq3NXuptoMEz2JHtCb 1/yYXYt7+uGHcJCYmJuny7TLGyc6GzuGnAuuwn50t9YY3P/KzFcXwtSWHnpITCKj iavDlFfz1OfVPgUZCCTGpmrHIfGz/XWuDcKrc0auZ8EfBVkuYyCaUlqoP8eLOzcH k6mMyfBLp+XjW4ZM7dGIYVbXDg0l0aKuTgN45JlInj7scg== X-Virus-Scanned: by MailRoute Received: from 009.lax.mailroute.net ([127.0.0.1]) by localhost (009.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id FPHsg5PxlvJu; Fri, 14 Jun 2024 16:40:58 +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 009.lax.mailroute.net (Postfix) with ESMTPSA id 4W14lr720fzlgMVV; Fri, 14 Jun 2024 16:40:56 +0000 (UTC) Message-ID: <7d0f68b8-ecdb-45fb-ae10-954eac5ed32c@acm.org> Date: Fri, 14 Jun 2024 09:40:56 -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 v5] block: Add ioprio to block_rq tracepoint To: Dongliang Cui , axboe@kernel.dk, rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, ebiggers@kernel.org Cc: 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: <20240614074936.113659-1-dongliang.cui@unisoc.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20240614074936.113659-1-dongliang.cui@unisoc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/14/24 12:49 AM, Dongliang Cui wrote: > - TP_printk("%d,%d %s (%s) %llu + %u [%d]", > + TP_printk("%d,%d %s (%s) %llu + %u %s,%u,%u [%d]", > MAJOR(__entry->dev), MINOR(__entry->dev), > __entry->rwbs, __get_str(cmd), > - (unsigned long long)__entry->sector, > - __entry->nr_sector, 0) > + (unsigned long long)__entry->sector, __entry->nr_sector, > + __print_symbolic(IOPRIO_PRIO_CLASS(__entry->ioprio), > + IOPRIO_CLASS_STRINGS), > + IOPRIO_PRIO_HINT(__entry->ioprio), > + IOPRIO_PRIO_LEVEL(__entry->ioprio), 0) > ); Do we really want to include the constant "[0]" in the tracing output? Otherwise this patch looks good to me. Thanks, Bart.