From nobody Tue Dec 16 11:30:02 2025 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (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 8E1ED2522B4 for ; Fri, 25 Jul 2025 18:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753468732; cv=none; b=gfKwGQ5+HG3Woht1nOrclniZqQzC5+wJ7yj6VtU/DkMC5g2CVDWA9hA6oZ6dE1Hirm5MNCHHfaATWeYjMZ8H6dEQ4KoJFEk0D2XxG+dJRPbeT6d3FwB6dzPbFocdwlh7QNan2qDcXE98e2aDOWcXbGvhFQJJlWs/0u85FbXU4xo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753468732; c=relaxed/simple; bh=w3B6eMOHBjLahJirDSZ+qk4aNUA7eTY19kZ8xkUuHVM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Gmlz4R6+l5gOweFVS9/lghr4ZnQzG8FANB+O5I2JpiejL3w3YomcZwF+yTHxAvK8GKKBhAqeGrfKgtVBdf6WxjWzOVXuNRu/ubXn2CiswIXhmHlw2wCEtaygRPXelmHQAyUPRO7A2ImfAKTKMLKNDxGuxXON/T49d0mnupzG/Lg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--cmllamas.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=bo7pXPfT; arc=none smtp.client-ip=209.85.215.202 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=flex--cmllamas.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bo7pXPfT" Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-b34abbcdcf3so1801895a12.1 for ; Fri, 25 Jul 2025 11:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1753468731; x=1754073531; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=0tolIyg+onFM/Vs+iMbCZXFo1uDxs6ZbvglnTYfZXx4=; b=bo7pXPfTobvcrzBD3cgapZj5+D3Wngc1hLfOycdqLMGC/ZxLFvuxcm6txF2Y381sVv XMBNk2jqL9Jj7ah+LP9BUksnUTVHVmdxFzxRmhX98try20g6P+s2wb0wEqEzq22EQJ0+ ReqcW6Ub6NqGSP2m7LP3HgpdLLqwS9BwKep3CbJ7wWwA0H3slUaZzYg+So6lxIUCawbP mX4/TiMvdG+g0B1LQdt/c1Ee4hGowyuE8bhLWT4NYFociJeJqWTbFB3A1FnZVwAlKb1l G7Eyv1EYgBeYcRRBV6ecS0yNYsQUXN3kheGBbMYTstGu0n6SrW1xNxUSJsTwhv1LryIq cifQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753468731; x=1754073531; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0tolIyg+onFM/Vs+iMbCZXFo1uDxs6ZbvglnTYfZXx4=; b=t41jKl23+bm5F7qaOz6EhlmL/ArzrqVGrPGhjdtiIblPZw6ed8x3jV8Q7J4JYe6u73 lTd9ZnhLqCi9xZ//7VXNmbY0N+v4FFXDD1lKxBnqtP7K8g7WGboGPYJZTr6AnGUeICvH lHOODRzY+mFQjaF27GziLfO/OuxQw37x8NKW0sxLlZNAEhjQXwYpEB1NpAesZEanFpRZ 1b3EMA2fh54/uXIZh2x/wmP/f4QX/q691McjBXp/X6jeP0Lk3j0ySe7XjBJhjZ2KkTEW ja/1JMqQQ7flkByaD4ikn7LxghoKrub1SgmdxDGfQB1jlDLtFxlJi6T1opES470Ry06c xVpA== X-Forwarded-Encrypted: i=1; AJvYcCU+t11g73Z80yTtURDh8VQ4pnNiB4Jd8L3S1hvdpl/sOQlf2zbs2QGV17oWeUAHwW81KVJ4VN21lb9+GBg=@vger.kernel.org X-Gm-Message-State: AOJu0YwUnhyi808VKVU4YtJvOUbiYip8an6MaRBUQOtFcbrTDavLE/DC LCC+9XZ6cz5uX206HdU895m7XgBLd8Q1NafFaQX7l3ey3CKPiZU0sJ2su/+LZNrNk+bkLR8Zx4G 1okt8ED31e/ckrg== X-Google-Smtp-Source: AGHT+IFQW/i8kOUdRjsXpgwamCzbOi/bLorIQ5DSxgTzYw6hRRyy4AJJJQkz2Dq9WZFz5qrLnV3cEr6OV1P+8g== X-Received: from pga13.prod.google.com ([2002:a05:6a02:4f8d:b0:b3b:cf3d:91f]) (user=cmllamas job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:2445:b0:232:36e3:9a4e with SMTP id adf61e73a8af0-23d701f8204mr5451980637.40.1753468730810; Fri, 25 Jul 2025 11:38:50 -0700 (PDT) Date: Fri, 25 Jul 2025 18:37:47 +0000 In-Reply-To: <20250725183811.409580-1-cmllamas@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250725183811.409580-1-cmllamas@google.com> X-Mailer: git-send-email 2.50.1.470.g6ba607880d-goog Message-ID: <20250725183811.409580-5-cmllamas@google.com> Subject: [PATCH v19 4/5] binder: add transaction_report feature entry From: Carlos Llamas To: Alice Ryhl , Greg Kroah-Hartman , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Shuah Khan , Yu-Ting Tseng , Li Li , Ba Jing Cc: Tiffany Yang , John Stultz , Shai Barack , "=?UTF-8?q?Thi=C3=A9baud=20Weksteen?=" , kernel-team@android.com, linux-kernel@vger.kernel.org, Jakub Kicinski , "open list:KERNEL SELFTEST FRAMEWORK" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Li Li Add "transaction_report" to the binderfs feature list, to help userspace determine if the "BINDER_CMD_REPORT" generic netlink api is supported by the binder driver. Signed-off-by: Li Li Signed-off-by: Carlos Llamas --- drivers/android/binderfs.c | 8 ++++++++ .../selftests/filesystems/binderfs/binderfs_test.c | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/android/binderfs.c b/drivers/android/binderfs.c index 4f827152d18e..f74a7e380261 100644 --- a/drivers/android/binderfs.c +++ b/drivers/android/binderfs.c @@ -59,6 +59,7 @@ struct binder_features { bool oneway_spam_detection; bool extended_error; bool freeze_notification; + bool transaction_report; }; =20 static const struct constant_table binderfs_param_stats[] =3D { @@ -76,6 +77,7 @@ static struct binder_features binder_features =3D { .oneway_spam_detection =3D true, .extended_error =3D true, .freeze_notification =3D true, + .transaction_report =3D true, }; =20 static inline struct binderfs_info *BINDERFS_SB(const struct super_block *= sb) @@ -616,6 +618,12 @@ static int init_binder_features(struct super_block *sb) if (IS_ERR(dentry)) return PTR_ERR(dentry); =20 + dentry =3D binderfs_create_file(dir, "transaction_report", + &binder_features_fops, + &binder_features.transaction_report); + if (IS_ERR(dentry)) + return PTR_ERR(dentry); + return 0; } =20 diff --git a/tools/testing/selftests/filesystems/binderfs/binderfs_test.c b= /tools/testing/selftests/filesystems/binderfs/binderfs_test.c index 81db85a5cc16..39a68078a79b 100644 --- a/tools/testing/selftests/filesystems/binderfs/binderfs_test.c +++ b/tools/testing/selftests/filesystems/binderfs/binderfs_test.c @@ -65,6 +65,7 @@ static int __do_binderfs_test(struct __test_metadata *_me= tadata) "oneway_spam_detection", "extended_error", "freeze_notification", + "transaction_report", }; =20 change_mountns(_metadata); --=20 2.50.1.470.g6ba607880d-goog