libclues
Linux C++ Tracing Library
Loading...
Searching...
No Matches
SystemCallInfo.hxx
1#pragma once
2
3// cosmos
4#include <cosmos/proc/ptrace.hxx>
5
6// clues
7#include <clues/sysnrs/types.hxx>
8#include <clues/types.hxx>
9
10namespace clues {
11
13
20class CLUES_API SystemCallInfo :
21 public cosmos::ptrace::SyscallInfo {
22public: // functions
23
24 SystemCallInfo();
25
26 auto sysNr() const {
27 return m_generic;
28 }
29
30 AnySystemCallNr nativeSysNr() const {
31 return m_native;
32 }
33
35
39 void updateSysNr();
40
41 ABI abi() const {
42 return m_abi;
43 }
44
45protected: // data
46
47 SystemCallNr m_generic;
48 AnySystemCallNr m_native;
49 ABI m_abi = ABI::UNKNOWN;
50};
51
52} // end ns
void updateSysNr()
Update m_generic and m_native based on the raw system call nr.
ABI
System Call ABI.
Definition types.hxx:62
SystemCallNr
Abstract system call number usable across architectures and ABIs.
Definition generic.hxx:29