INNER CODE UNIT · Go

updateInfo

cilium/tetragon · cmd/dump-syscalls-info/main.go:211

func updateInfo(
	oldInfo map[string][]SyscallArg,
	newInfo map[string][]SyscallArg,
) map[string][]SyscallArg {
	type valTy struct {
		inOld bool
		inNew bool
	}
	allSyscalls := make(map[string]*valTy)
	for k := range oldInfo {
		allSyscalls[k] = &valTy{inOld: true}
	}
	for k := range newInfo {
		if v := allSyscalls[k]; v == nil {
			allSyscalls[k] = &valTy{inNew: true}
		} else {
			v.inNew = true
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…