aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/mgrconfig/load.go
diff options
context:
space:
mode:
authorPimyn Girgis <bemenboshra2001@gmail.com>2024-09-09 09:50:36 +0000
committerAleksandr Nogikh <nogikh@google.com>2024-09-09 13:14:54 +0000
commit507ed33fbf576d99310b16d07ffc58cab120f162 (patch)
tree905350940b3e80f8a668a11f81a169e88f3d284e /pkg/mgrconfig/load.go
parenteb78580fab6646a3bf394e62bf0b20444bbf207f (diff)
pkg/mgrconfig, prog, sys/linux: add automatic_helper attribute
Add automatic_helper attribute and enable it for system calls that are required to properly run automatically generated descriptions. Enable these system calls when descriptions_mode = `Auto`.
Diffstat (limited to 'pkg/mgrconfig/load.go')
-rw-r--r--pkg/mgrconfig/load.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/mgrconfig/load.go b/pkg/mgrconfig/load.go
index 76a0bcf14..b5e171973 100644
--- a/pkg/mgrconfig/load.go
+++ b/pkg/mgrconfig/load.go
@@ -364,7 +364,8 @@ func ParseEnabledSyscalls(target *prog.Target, enabled, disabled []string,
for call := range syscalls {
if target.Syscalls[call].Attrs.Disabled ||
descriptionsMode == ManualDescriptions && target.Syscalls[call].Attrs.Automatic ||
- descriptionsMode == AutoDescriptions && !target.Syscalls[call].Attrs.Automatic {
+ descriptionsMode == AutoDescriptions &&
+ !target.Syscalls[call].Attrs.Automatic && !target.Syscalls[call].Attrs.AutomaticHelper {
delete(syscalls, call)
}
}