btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / debugger / model / SyscallInfo.h
blob4bb597f03704059a45a916001caf049d7874293c
1 /*
2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SYSCALL_INFO_H
6 #define SYSCALL_INFO_H
8 #include "Types.h"
11 class SyscallInfo {
12 public:
13 SyscallInfo();
14 SyscallInfo(const SyscallInfo& other);
15 SyscallInfo(bigtime_t startTime,
16 bigtime_t endTime,
17 uint64 returnValue,
18 uint32 syscall,
19 const uint8* args);
21 void SetTo(bigtime_t startTime,
22 bigtime_t endTime,
23 uint64 returnValue,
24 uint32 syscall,
25 const uint8* args);
27 bigtime_t StartTime() const { return fStartTime; }
28 bigtime_t EndTime() const { return fEndTime; }
29 uint64 ReturnValue() const { return fReturnValue; }
30 uint32 Syscall() const { return fSyscall; }
32 const uint8* Arguments() const { return fArguments; }
34 private:
35 bigtime_t fStartTime;
36 bigtime_t fEndTime;
37 uint64 fReturnValue;
38 uint32 fSyscall;
39 uint8 fArguments[128];
43 #endif // SYSCALL_INFO_H