From e5d1b3d6ab61b85b945400fcbd3637052feb2ace Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 30 Sep 2026 05:23:28 -0400 Subject: sema-svc: sema_copy_watch (size-keyed src/dst byte audit for the CE data path) --- kernel/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kernel/main.c') diff --git a/kernel/main.c b/kernel/main.c index 52156dc..3a42132 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -2457,6 +2457,14 @@ MODULE_PARM_DESC(sema_skip_ops, "Apply releases without executing pushed memsets module_param_named(sema_ops_log, gsp_sema_ops_log, uint, 0644); MODULE_PARM_DESC(sema_ops_log, "Max executed CE ops logged with operands (default 8)"); +/* + * Data-path watch: log the first source/destination bytes of every CE copy + * of exactly this size (0 = off), to audit the push-data chain: + * echo 256 > .../parameters/sema_copy_watch + */ +module_param_named(sema_copy_watch, gsp_sema_copy_watch, uint, 0644); +MODULE_PARM_DESC(sema_copy_watch, "Copy size whose first bytes are logged (default 0)"); + /* * Grace window (ms) an untranslatable GR entry stays pending before the pump * consumes it as stale, so a late push-buffer pin can still make it readable. -- cgit v1.2.3