From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 ECDA6327202 for ; Tue, 27 Jan 2026 18:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769538705; cv=none; b=UC80Stdi6zIEI8He1WFyczoQJix5MheUFLGtQbwLFEuvxVGwMVnI3lyQRz8xTWvteHw3NItXzMWiB4gbkLgcgme9MQtSH6zqROGjlNaqX9jiakNDgsdHScRnvJf40oaZslJxP8mRQQmEiD3EM3DlH0U06T4wanvRmgNsa149a/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769538705; c=relaxed/simple; bh=h26afcKOHIVNnzkGt0ZdZvKmdm5p5/NPbHS+3QBbrPQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R25Dkwewt0pY+9Uonc5TOplydapK1Vc7ptHSzaME2n5eQ55rU3dl+uBma0byGb/ByVrzYP4pTs6lHsJYivm8X//si/0qzVWsPr+o9nRGIvLSDorwnZyEaKjH9eK2SM3FBI2Zaf2R7ubMdaPa0tUcq7KtYEEUkQdjEj5MEarjIuo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=dxRAU8Kh; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="dxRAU8Kh" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2a76b39587aso8105ad.0 for ; Tue, 27 Jan 2026 10:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1769538702; x=1770143502; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=M7H/8xfB5IYsah8RhOLV2MePrkEzYaBFh1rOK2YldAs=; b=dxRAU8KhslJocLzcAVGwR+vqSEYqpg8Ysyi0osRbrHcf/xSeWJNyXtHVgJRWpREJL6 hOlp4NHzoH1DMXNUcLAY0TKSt+1/Bp/4idayQSHWNkiE8QgPpPi0H8PzKmmMxbbRucNE lMvZjSCFqb/Uz2NRbq9hHYpp+b+MNo3056c9PmXEggtCBtcCKFDCRPIMRMYPwNJ6bHvI xdVRx83fvZUduDu4jrGHPCUYZRw+IYgAokzkVQWeknFO7b3YJxEfMIUh3glL0s+jS3yf liDKSUY2ilfAhrpzQHS/ukk1RGJdV3TMynt16xvmxgpGYy99/xKmdCth+r7jwJOq7KJP 2sFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769538702; x=1770143502; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M7H/8xfB5IYsah8RhOLV2MePrkEzYaBFh1rOK2YldAs=; b=PtRRt16LFbB+F+vJOKBYOunsFwQ2SoDtN5xP1zFIl4z00GGWmCmT0wyYJpLXeISXYf COKwVzHU1m8f6tjqmAd6pd3y4GmHwmQQOIMgX5ZJaDKMadTW6sUU3kf3v3ZQEtLQdziK liQFAvZiPhtGTcJFOkpSDOrq5hWpwBQJPIlAOMpS2kHBDs1DRkTaqpLgKc/rWqhaab3Y ZFhTkUwmTAyf0roJi/33C9fh6MVybCZLWPatqJXSHV/WxwsS+VpTQ3NvBIQ3xcp45au8 itZg0LTPMTqyATyKkPZzdzZ4noi7uDm++jWZL11tsjyduePf0X/VO/m9sjMJD2g1tdnx VA/Q== X-Forwarded-Encrypted: i=1; AJvYcCUxCj/QE00EO1zStfBvIdKqGC+2fMb8kkcwIsyn6KAlRBI4WwyW8g3MAkS5fZ6S8mopqGVyPvAO3IPFXEc=@vger.kernel.org X-Gm-Message-State: AOJu0YwpJPrxmgpsLW+HajppOYKHvk7kCJ8D1QbXfB5S3+OlnT5mz8NX 22ZP8XNI7pN/ctSBYHcbRrrlIoCJRohuT16R35R9/7GlYHVnCyxLJXJzJMffeVoqxQ== X-Gm-Gg: AZuq6aIW7eU2pCwWgouesev0tBV9hu8DjpwWGGhiMBUbfOUBpWS08+Ht8rgt7vK+e2G qUNxTc7y7WJI6BTKGlBglHolMS1UNnN2yyrgKr08BPio2+xV3Ssvj9WH3e7Mf/yQZ4fDsLLQaBP csgTKTV5rFf/agfSXrTi8vIeUNQcyzYutqr8GgbQdxrv15qchonPn63DA7ZmR548V1lXWDuY55y bCnBFS8FBkI6ON3bvHLf3WR4lCgs35D0qUzjvnofAYgJIgzGYB0LDwiJsgQLYQlxN0pG08IA/FD Jsgm5oXbn3/VYcopZgGtX6aYx5uCBsW4dsCInWZbS0X1ku3oaTS2+gOA5i/HhDoQqRBTVTbRabd HG+3o/eBKmvjQEy3Ze0kGoPaHWsYkFExRFO+/aPjeRlYIAO5ekjQfCj5lWPZ83DYErlEPl7YJF7 9bGQJzpKY3GTeieE+8beOj+ZOnPUm9CMcuhiO+7cAP15+nB9hM0g== X-Received: by 2002:a17:902:d583:b0:2a7:6fd3:c11e with SMTP id d9443c01a7336-2a870b4f72fmr2828205ad.18.1769538701664; Tue, 27 Jan 2026 10:31:41 -0800 (PST) Received: from google.com (28.117.125.34.bc.googleusercontent.com. [34.125.117.28]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a88b4c3b1esm605245ad.63.2026.01.27.10.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jan 2026 10:31:41 -0800 (PST) Date: Tue, 27 Jan 2026 18:31:36 +0000 From: Carlos Llamas To: Alice Ryhl Cc: Greg Kroah-Hartman , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Suren Baghdasaryan , rust-for-linux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] rust_binder: add binder_transaction tracepoint Message-ID: References: <20251203-binder-trace1-v1-0-22d3ffddb44e@google.com> <20251203-binder-trace1-v1-2-22d3ffddb44e@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251203-binder-trace1-v1-2-22d3ffddb44e@google.com> On Wed, Dec 03, 2025 at 02:48:09PM +0000, Alice Ryhl wrote: > This patch adds the binder_transaction tracepoint to Rust Binder. This > was chosen as the next tracepoint to add as it is the most complex > tracepoint. (And it's also an important tracepoint known to perfetto.) > > Signed-off-by: Alice Ryhl > --- This approach seems to work well considering the limitations. I wonder though if it would be more practical to simply pass the individual primitive values used by TP_prinkt() from the start? I suppose the downside would be the extra overhead with the tracepoints disabled. However, this might be neglectable and the solution much simpler? > +static inline rust_binder_node rust_binder_transaction_target_node(rust_binder_transaction t) > +{ > + void *p = *(void **) (t + RUST_BINDER_LAYOUT.t.target_node); > + > + if (p) > + p = p + RUST_BINDER_LAYOUT.n.arc_offset; > + return NULL; It looks like this should have 'return p' right? Sorry for the late review this has been picked up so we might need a fixes for this. -- Carlos Llamas