github.com/DataDog/datadog-agent/pkg/security/secl@v0.55.0-devel.0.20240517055856-10c4965fea94/model/syscalls.go (about) 1 // Unless explicitly stated otherwise all files in this repository are licensed 2 // under the Apache License Version 2.0. 3 // This product includes software developed at Datadog (https://www.datadoghq.com/). 4 // Copyright 2016-present Datadog, Inc. 5 6 //go:build linux 7 8 // Package model holds model related files 9 package model 10 11 import ( 12 "strings" 13 ) 14 15 // MarshalText maps the syscall identifier to UTF-8-encoded text and returns the result 16 func (s Syscall) MarshalText() ([]byte, error) { 17 return []byte(strings.ToLower(strings.TrimPrefix(s.String(), "Sys"))), nil 18 }