| 18 | |
| 19 | @dataclass |
| 20 | class SyscallDefinition: |
| 21 | arch: str |
| 22 | syscall_number: int |
| 23 | abi: str |
| 24 | name: str |
| 25 | entry: str |
| 26 | def __init__(self, Arch, SyscallNumber, ABI, Name, Entry): |
| 27 | self.arch = Arch |
| 28 | self.syscall_number = SyscallNumber |
| 29 | self.abi = ABI |
| 30 | self.name = Name |
| 31 | self.entry = Entry |
| 32 | |
| 33 | @property |
| 34 | def Arch(self): |
| 35 | return self.arch |
| 36 | |
| 37 | @property |
| 38 | def Number(self): |
| 39 | return self.syscall_number |
| 40 | |
| 41 | @property |
| 42 | def ABI(self): |
| 43 | return self.abi |
| 44 | |
| 45 | @property |
| 46 | def Name(self): |
| 47 | return self.name |
| 48 | |
| 49 | @property |
| 50 | def EntryName(self): |
| 51 | return self.entry |
| 52 | |
| 53 | Syscallx64File = "/arch/x86/entry/syscalls/syscall_64.tbl" |
| 54 | Syscallx86File = "/arch/x86/entry/syscalls/syscall_32.tbl" |
no outgoing calls
no test coverage detected