-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- perf: improvements include reducing the size of the parser logic by using slices instead of maps whenever possible. This allows for direct access to values via index, and when direct access isn't feasible, iterating through slices is generally more efficient than fetching values from a map. - perf: return string only instead of the Argument type since it's the only value used. - fix ParseOpenFlagArgument that wasn't printing O_RDONLY flag alone. - fix ParseAccessMode that wasn't printing F_OK flag alone. - fix ParseExecFlag (now ParseExecveatFlag) to check only related flags. - fix Faccessat and Fchmodat to parse flags arg too. - feat: *at syscalls with dirfd arg now parse for special case AT_FDCWD when ParseArgumentsFDs is true. - chore: try as much as possible to use values defined in the C system, avoiding entering incorrect values. - chore: add to ParseCapability the missing flags: CAP_PERFMON, CAP_BPF and CAP_CHECKPOINT_RESTORE. - chore: add to ParsePrctlOption the missing flags: 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. - chore: add to ParseBPF the missing flags: BPF_PROG_BIND_MAP, BPF_TOKEN_CREATE - chore ParsePtraceRequestArgument including missing flags 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. - chore: add to ParseSocketDomainArgument the missing: AF_MCTP. This commit reduces the size of the final binary by ~56KB.
- Loading branch information
Showing
6 changed files
with
1,211 additions
and
1,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.