-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
argument parsers improvements #4279
base: main
Are you sure you want to change the base?
Commits on Sep 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 27e0a3a - Browse repository at this point
Copy the full SHA 27e0a3aView commit details -
chore: use system values from C includes
Try as much as possible to use values defined in the C system, avoiding entering incorrect values.
Configuration menu - View commit details
-
Copy full SHA for d9aba07 - Browse repository at this point
Copy the full SHA d9aba07View commit details -
Iterate slice instead of conditional branch. Return string only instead of the Argument type since it's the only value used. | BenchmarkParseCloneFlags-32 | Before | After | |-----------------------------|----------|--------| | Execution Time (ns/op) | 1117 | 696.7 | | Memory Allocated (B/op) | 1192 | 736 | | Allocations per Operation | 27 | 25 |
Configuration menu - View commit details
-
Copy full SHA for a2e372d - Browse repository at this point
Copy the full SHA a2e372dView commit details -
perf: fix: improve ParseOpenFlagArgument
When possible iterates slice instead of conditional branch. Return string only instead of the Argument type since it's the only value used. Fix logic, since it wasn't printing O_RDONLY flag alone.
Configuration menu - View commit details
-
Copy full SHA for f506f52 - Browse repository at this point
Copy the full SHA f506f52View commit details -
perf: fix: improve ParseAccessMode
Iterate slice instead of conditional branch. Return string only instead of the Argument type since it's the only value used. Fix logic, since it wasn't printing F_OK flag alone.
Configuration menu - View commit details
-
Copy full SHA for ad4d395 - Browse repository at this point
Copy the full SHA ad4d395View commit details -
feat: perf: fix: AT flags parsing
Introduce ParseFaccessatFlag to parse faccessat flags. Introduce ParseFchmodatFlag to parse fchmodat flags. Iterate slice instead of conditional branch. Return string only instead of the Argument type since it's the only value used. Fix ParseExecFlag (now ParseExecveatFlag) to check only related flags.
Configuration menu - View commit details
-
Copy full SHA for 5ed2ede - Browse repository at this point
Copy the full SHA 5ed2edeView commit details -
perf: chore: add missing flags to ParseCapability
Add missing flags to ParseCapability: CAP_PERFMON, CAP_BPF and CAP_CHECKPOINT_RESTORE Use slice instead of maps. This allows for direct access to values via index. Return string only instead of the Argument type since it's the only value used.
Configuration menu - View commit details
-
Copy full SHA for 31142af - Browse repository at this point
Copy the full SHA 31142afView commit details -
perf: chore: add missing flags to ParsePrctlOption
Add missing flags to ParsePrctlOption: PR_SET_IO_FLUSHER, PR_GET_IO_FLUSHER, PR_SET_SYSCALL_USER_DISPATCH, PR_PAC_SET_ENABLED_KEYS, PR_PAC_GET_ENABLED_KEYS, PR_SCHED_CORE, PR_SME_SET_VL, PR_SME_GET_VL, PR_SET_MDWE, PR_GET_MDWE, PR_SET_MEMORY_MERGE and PR_GET_MEMORY_MERGE. Iterate slice instead of fetching a map. Return string only instead of the Argument type since it's the only value used.
Configuration menu - View commit details
-
Copy full SHA for 7ad7f85 - Browse repository at this point
Copy the full SHA 7ad7f85View commit details -
perf: chore: add missing flags to ParseBPFCmd
Add missing flags to ParseBPFCmd: BPF_PROG_BIND_MAP, BPF_TOKEN_CREATE Use slice instead of maps. This allows for direct access to values via index. Return string only instead of the Argument type since it's the only value used.
Configuration menu - View commit details
-
Copy full SHA for 87c9b54 - Browse repository at this point
Copy the full SHA 87c9b54View commit details -
perf: chore: add flags ParsePtraceRequestArgument
Add missing flags to ParsePtraceRequestArgument: PTRACE_GET_THREAD_AREA, PTRACE_SET_THREAD_AREA, PTRACE_ARCH_PRCTL, PTRACE_SYSEMU, PTRACE_SYSEMU_SINGLESTEP, PTRACE_SINGLEBLOCK, PTRACE_GET_RSEQ_CONFIGURATION, PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG and PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG. Iterate slice instead of fetching a map. Return string only instead of the Argument type since it's the only value used.
Configuration menu - View commit details
-
Copy full SHA for fc9f769 - Browse repository at this point
Copy the full SHA fc9f769View commit details -
perf: chore: improve ParseSocketcallCall
Use slice instead of maps. This allows for direct access to values via index. Return string only instead of the Argument type since it's the only value used.
Configuration menu - View commit details
-
Copy full SHA for 1a07477 - Browse repository at this point
Copy the full SHA 1a07477View commit details -
perf: chore: add flag to ParseSocketDomainArgument
Add missing flag to ParseSocketDomainArgument: AF_MCTP Use slice instead of maps. This allows for direct access to values via index. Return string only instead of the Argument type since it's the only value used.
Configuration menu - View commit details
-
Copy full SHA for 961a3c8 - Browse repository at this point
Copy the full SHA 961a3c8View commit details -
feat: parse dirfd for special case AT_FDCWD
syscalls with dirfd arg now parse for special case AT_FDCWD when ParseArgumentsFDs is true.
Configuration menu - View commit details
-
Copy full SHA for c73924e - Browse repository at this point
Copy the full SHA c73924eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32999c7 - Browse repository at this point
Copy the full SHA 32999c7View commit details