Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

binder: add transaction_report feature entry

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 <dualli@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20250727182932.2499194-5-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Li Li and committed by
Greg Kroah-Hartman
f37b55de 63740349

+9
+8
drivers/android/binderfs.c
··· 59 59 bool oneway_spam_detection; 60 60 bool extended_error; 61 61 bool freeze_notification; 62 + bool transaction_report; 62 63 }; 63 64 64 65 static const struct constant_table binderfs_param_stats[] = { ··· 77 76 .oneway_spam_detection = true, 78 77 .extended_error = true, 79 78 .freeze_notification = true, 79 + .transaction_report = true, 80 80 }; 81 81 82 82 static inline struct binderfs_info *BINDERFS_SB(const struct super_block *sb) ··· 600 598 dentry = binderfs_create_file(dir, "freeze_notification", 601 599 &binder_features_fops, 602 600 &binder_features.freeze_notification); 601 + if (IS_ERR(dentry)) 602 + return PTR_ERR(dentry); 603 + 604 + dentry = binderfs_create_file(dir, "transaction_report", 605 + &binder_features_fops, 606 + &binder_features.transaction_report); 603 607 if (IS_ERR(dentry)) 604 608 return PTR_ERR(dentry); 605 609
+1
tools/testing/selftests/filesystems/binderfs/binderfs_test.c
··· 65 65 "oneway_spam_detection", 66 66 "extended_error", 67 67 "freeze_notification", 68 + "transaction_report", 68 69 }; 69 70 70 71 change_mountns(_metadata);