From nobody Sun Dec 14 11:17:17 2025 Received: from mail-yx1-f98.google.com (mail-yx1-f98.google.com [74.125.224.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C241B2D7DD2 for ; Fri, 12 Dec 2025 17:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.98 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765559835; cv=none; b=tQ6rz4/gyvVbYZJjeYeJO50BzvwmGIqwy+4hiddnRNYmvJN8lQkNpdv2IwQFd3eGgGNYDNLdy24MqqLIHQOK6cjcO6a5N4SgdNPbuHylmob2IFKFkZtIOAVnUp2/hj6TBF65heWaFEwbNGk594TtQrNxPsT7q9neBK6Y+e6Stwc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765559835; c=relaxed/simple; bh=Nv/iP0PPlu7PYFQwI+jBPI8ffRylYj1zxIf1qEKb0tE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A4iGJvtEEOl4BMeOru/JbKwtF0xt7kAM2vIjS+g1eRRZlWZqyOaod7H97w9Qw9TxkptgO7hdAOO0g8Fefex4xKAj2knC9vIOqe0VDgUgktdG1r2H6nsdeKZZoTE6ozDEDVRBZPdLVfxwdWSAkwbvW5xI9G29/vsgEswJ/u9ZHsI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=Meavvcpz; arc=none smtp.client-ip=74.125.224.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="Meavvcpz" Received: by mail-yx1-f98.google.com with SMTP id 956f58d0204a3-64305af3dffso268965d50.2 for ; Fri, 12 Dec 2025 09:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1765559830; x=1766164630; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ro8OsZF3uJAug4OtKve3tUbRbgxB29DrKAw1agkxt6A=; b=MeavvcpzqdlJMYBcwBc0mnEyFxzNxocWJ59dX4c95+WZtAYMrwyaMfcFPDGLZ/eihr NztHHNDgvIZHwPiJG5+voyiZvS+8wiJcvRefxEeXLlWwg9rUa6lOYQWlFR1FWiClNduq X6+KDRgimp3CDNNXi+/49G+P2xZLlDqz21ezUocPJnBAU63uSXVfK4lgA3lN53aaLZNL uo3QbCyoX2IZshopKy9Ta2PDr7VXuYL6/zKr6zexJ95tSHQbzdUhk2NX8/OxY4iDKnbb TyZW2K93zyRmf4ggx/sosAWNE2PmTrDTpEraeG5oZdYnFO5CeGN6Z60Iorwhcw5lUbKd M6pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765559830; x=1766164630; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ro8OsZF3uJAug4OtKve3tUbRbgxB29DrKAw1agkxt6A=; b=Is3ScQ35ggr5PXqBk7/OzA8S9SdFdsAsm0rcVMH6uWaP8xrRp//GvwL4b1zhLnVVyV uiL3et2fUEAUy9VojJsp9N8xMDyOr9lOcHB0cgy79v+D15Owxyry6CNrPaPusrnWrBft spiY/EnnQIE/JX6XmtWsmvm0b59oFLMC6UK/6r1KNb/YVjtF5EQNrxex7j/EKyTQMTQy 2yCpi5qpfvWV1jtD2qqK/msgL9HSeZZDnnOkIqNGHeV+0rXnm5NdSIfUZkPwIYIqPTRB gm9srmFFjkZvGtpMxI6l76xVLRgTFcW3ds+Uo3fNRjHiQ27VJDfAebf/IW7r5n00Xb3M oWLg== X-Forwarded-Encrypted: i=1; AJvYcCVle85zXT75/W3ZJ3uB2Xi1i7cSQF8lxmkmGye9/r0Aehj2Eyyo1jn5g89YbeFHdVAicQ52AvNjcR/hwfs=@vger.kernel.org X-Gm-Message-State: AOJu0YyyAxkkwb8WxVO7Wm9iws6QLTz3tFUqlcr9iQqjQCZ/zYwU7BkZ F9BoyzFBSaePhvugdgFPBd117iODOJsqo++ylXYlOzsMexK5XVy6lXS62JWJYS5NqfCJha/OlFt NmgQavY0iBhllln9hDgLOmtXkvK6Rx6g/LyRV X-Gm-Gg: AY/fxX4lXSEImA7klCtL2OiGD6/vke/ANtjIYSLW6aB44dRQ7erkfa5x1SYdahokQGW 07LeTNNRtHslN/+zALcUMJ/MJxzkDNUfePuEhsPOBY/RqAGdFlEVKUdSF+R0ASYi+t3d43r3rTg hyVPTnixKGNdbm/CChuJUiEaj3XUxYOV8X1TKdWkssldPsTLgsvt9VEYvyHraX/NYS+Yv4ZRr7F eZU3U/25nwUA+OSIqboecSk7OFhQJNSNUAGb+fkFYEkMcXRXKvQt/NgpVmBTx91ew7uLpKs130H MB+wMulBjTXcrG223zrRAgAID8MD/NRooh/7NEcyDh0khRPHGN3RQYIFulSoIkmRKbzyxYg+BSD EHSIjIBi4d5fh8RJhcb9s73BYw7p318HHfzW+8fxEaA== X-Google-Smtp-Source: AGHT+IFNTxmApTgusf4sfYV5PLHTCIAoG4zUHXYTcGDGNqkjjCZbCxVmDORyUEFBYVQ5XE3L2oQUlxV8Yis8 X-Received: by 2002:a05:690e:13c2:b0:63f:88f9:357e with SMTP id 956f58d0204a3-64555505a93mr1715261d50.0.1765559830171; Fri, 12 Dec 2025 09:17:10 -0800 (PST) Received: from c7-smtp-2023.dev.purestorage.com ([208.88.159.128]) by smtp-relay.gmail.com with ESMTPS id 00721157ae682-78e6a405735sm2336147b3.15.2025.12.12.09.17.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Dec 2025 09:17:10 -0800 (PST) X-Relaying-Domain: purestorage.com Received: from dev-csander.dev.purestorage.com (dev-csander.dev.purestorage.com [10.7.70.37]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id 3D00C34050E; Fri, 12 Dec 2025 10:17:09 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 3AB55E4232B; Fri, 12 Dec 2025 10:17:09 -0700 (MST) From: Caleb Sander Mateos To: Ming Lei , Shuah Khan Cc: linux-block@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Caleb Sander Mateos Subject: [PATCH v3 2/9] selftests: ublk: correct last_rw map type in seq_io.bt Date: Fri, 12 Dec 2025 10:17:00 -0700 Message-ID: <20251212171707.1876250-3-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251212171707.1876250-1-csander@purestorage.com> References: <20251212171707.1876250-1-csander@purestorage.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The last_rw map is initialized with a value of 0 but later assigned the value args.sector + args.nr_sector, which has type sector_t =3D u64. bpftrace complains about the type mismatch between int64 and uint64: trace/seq_io.bt:18:3-59: ERROR: Type mismatch for @last_rw: trying to assig= n value of type 'uint64' when map already contains a value of type 'int64' @last_rw[$dev, str($2)] =3D (args.sector + args.nr_sector); Cast the initial value to uint64 so bpftrace will load the program. Signed-off-by: Caleb Sander Mateos Reviewed-by: Ming Lei --- tools/testing/selftests/ublk/trace/seq_io.bt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/ublk/trace/seq_io.bt b/tools/testing/s= elftests/ublk/trace/seq_io.bt index 272ac54c9d5f..507a3ca05abf 100644 --- a/tools/testing/selftests/ublk/trace/seq_io.bt +++ b/tools/testing/selftests/ublk/trace/seq_io.bt @@ -2,11 +2,11 @@ $1: dev_t $2: RWBS $3: strlen($2) */ BEGIN { - @last_rw[$1, str($2)] =3D 0; + @last_rw[$1, str($2)] =3D (uint64)0; } tracepoint:block:block_rq_complete { $dev =3D $1; if ((int64)args.dev =3D=3D $1 && !strncmp(args.rwbs, str($2), $3)) { --=20 2.45.2