2013-06-27 05:43:57 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2013, Rene Gollent, rene@gollent.com.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef SYSCALL_INFO_H
|
|
|
|
#define SYSCALL_INFO_H
|
|
|
|
|
|
|
|
#include "Types.h"
|
|
|
|
|
|
|
|
|
|
|
|
class SyscallInfo {
|
|
|
|
public:
|
|
|
|
SyscallInfo();
|
|
|
|
SyscallInfo(const SyscallInfo& other);
|
|
|
|
SyscallInfo(bigtime_t startTime,
|
|
|
|
bigtime_t endTime,
|
|
|
|
uint64 returnValue,
|
|
|
|
uint32 syscall,
|
2013-06-29 02:42:40 +04:00
|
|
|
const uint8* args);
|
2013-06-27 05:43:57 +04:00
|
|
|
|
|
|
|
void SetTo(bigtime_t startTime,
|
|
|
|
bigtime_t endTime,
|
|
|
|
uint64 returnValue,
|
|
|
|
uint32 syscall,
|
2013-06-29 02:42:40 +04:00
|
|
|
const uint8* args);
|
2013-06-27 05:43:57 +04:00
|
|
|
|
|
|
|
bigtime_t StartTime() const { return fStartTime; }
|
|
|
|
bigtime_t EndTime() const { return fEndTime; }
|
|
|
|
uint64 ReturnValue() const { return fReturnValue; }
|
|
|
|
uint32 Syscall() const { return fSyscall; }
|
|
|
|
|
2013-06-29 02:42:40 +04:00
|
|
|
const uint8* Arguments() const { return fArguments; }
|
2013-06-27 05:43:57 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
bigtime_t fStartTime;
|
|
|
|
bigtime_t fEndTime;
|
|
|
|
uint64 fReturnValue;
|
|
|
|
uint32 fSyscall;
|
2013-06-29 02:42:40 +04:00
|
|
|
uint8 fArguments[128];
|
2013-06-27 05:43:57 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // SYSCALL_INFO_H
|