2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
6 #include "SyscallInfo.h"
11 SyscallInfo::SyscallInfo()
18 memset(fArguments
, 0, sizeof(fArguments
));
22 SyscallInfo::SyscallInfo(const SyscallInfo
& other
)
24 fStartTime(other
.fStartTime
),
25 fEndTime(other
.fEndTime
),
26 fReturnValue(other
.fReturnValue
),
27 fSyscall(other
.fSyscall
)
29 memcpy(fArguments
, other
.fArguments
, sizeof(fArguments
));
33 SyscallInfo::SyscallInfo(bigtime_t startTime
, bigtime_t endTime
,
34 uint64 returnValue
, uint32 syscall
, const uint8
* args
)
36 fStartTime(startTime
),
38 fReturnValue(returnValue
),
41 memcpy(fArguments
, args
, sizeof(fArguments
));
46 SyscallInfo::SetTo(bigtime_t startTime
, bigtime_t endTime
, uint64 returnValue
,
47 uint32 syscall
, const uint8
* args
)
49 fStartTime
= startTime
;
51 fReturnValue
= returnValue
;
53 memcpy(fArguments
, args
, sizeof(fArguments
));