/haiku/src/system/libroot/os/arch/x86/ |
H A D | syscalls.inc | 11 * syscall interface works as such: 12 * eax has syscall # 13 * esp + 4 points to the syscall parameters 14 * branch to the syscall vector in the commpage
|
/haiku/src/system/kernel/ |
H A D | syscalls.cpp | 9 syscall interface. 77 static mutex sGenericSyscallLock = MUTEX_INITIALIZER("generic syscall"); 98 while (generic_syscall* syscall = iterator.Next()) { 99 if (!strcmp(syscall->subsystem, subsystem)) 100 return syscall; 107 /*! Calls the generic syscall subsystem if any. 108 Also handles the special generic syscall function \c B_SYSCALL_INFO. 111 All other return codes are depending on the generic syscall implementation. 127 generic_syscall* syscall = find_generic_syscall(subsystem); local 128 if (syscall 264 generic_syscall* syscall = new(std::nothrow) generic_syscall; local 294 generic_syscall* syscall = find_generic_syscall(subsystem); local 333 get_syscall_name(uint32 syscall) argument 344 PreSyscall(uint32 syscall, const void* parameters) argument 439 PostSyscall(uint32 syscall, uint64 returnValue) argument [all...] |
/haiku/src/system/libroot/os/arch/x86_64/ |
H A D | syscalls.inc | 20 syscall; \ 29 syscall; \
|
/haiku/src/kits/debugger/model/ |
H A D | SyscallInfo.cpp | 34 uint64 returnValue, uint32 syscall, const uint8* args) 39 fSyscall(syscall) 47 uint32 syscall, const uint8* args) 52 fSyscall = syscall; 33 SyscallInfo(bigtime_t startTime, bigtime_t endTime, uint64 returnValue, uint32 syscall, const uint8* args) argument 46 SetTo(bigtime_t startTime, bigtime_t endTime, uint64 returnValue, uint32 syscall, const uint8* args) argument
|
/haiku/src/tests/system/benchmarks/ |
H A D | syscallbench.c | 50 unsigned long syscall; local 57 syscall = test_func((void *)&is_computer_on); 65 printf("syscall time: %ld nanoseconds\n", 66 (1000*(syscall-overhead))/ITERATIONS);
|
/haiku/src/system/kernel/arch/x86/64/ |
H A D | syscalls_asm.S | 12 /* user space half of the syscall mechanism, to be copied into the commpage */ 26 // AMD syscall/sysret 28 syscall
|
H A D | arch.S | 49 syscall
|
/haiku/src/tools/gensyscalls/ |
H A D | gensyscalls.cpp | 38 " syscall dispatcher source file.\n" 41 " syscall numbers.\n" 240 Syscall* syscall = new Syscall(name, kernelName); 241 fSyscalls->push_back(syscall); 242 return syscall; 330 const Syscall* syscall = fSyscallVector->SyscallAt(i); local 331 int paramCount = syscall->CountParameters(); 336 const Parameter* parameter = syscall->ParameterAt(k); 341 << syscall->Name() << ", " << i << ")" << endl; 354 const Syscall* syscall local 401 const Syscall* syscall = fSyscallVector->SyscallAt(i); local 445 const Syscall* syscall = fSyscallVector->SyscallAt(i); local 467 const Syscall* syscall = fSyscallVector->SyscallAt(i); local 522 const Syscall* syscall = fSyscallVector->SyscallAt(i); local [all...] |
H A D | gensyscallinfos.cpp | 32 "Usage: gensyscallinfos <header> <syscall infos> <syscall types sizes>\n" 34 "Given the (preprocessed) header file that defines the syscall prototypes " 36 "command generates a source file consisting of syscall infos, which is " 38 "to build gensyscalls, which in turn generates the assembly syscall\n" 39 "definitions and code for the kernelland syscall dispatcher.\n" 42 " syscall prototypes.\n" 43 " <syscall infos> - Output: The syscall infos source file needed " 46 " <syscall type 336 Syscall syscall; local 382 const Syscall& syscall = fSyscalls[i]; local 446 const Syscall& syscall = fSyscalls[i]; local 471 _ParseSyscall(Tokenizer& tokenizer, Syscall& syscall) argument 504 _ParseParameter(Tokenizer& tokenizer, Syscall& syscall) argument 539 _ParseFunctionPointerParameter(Tokenizer& tokenizer, Syscall& syscall, vector<string>& type) argument [all...] |
/haiku/headers/private/debugger/model/ |
H A D | SyscallInfo.h | 18 uint32 syscall, 24 uint32 syscall,
|
/haiku/src/bin/debug/strace/ |
H A D | strace.cpp | 80 " -a - Don't print syscall arguments.\n" 81 " -c - Record and dump syscall usage statistics.\n" 88 " * a syscall name\n" 97 " -r - Don't print syscall return values.\n" 240 Syscall *syscall = sSyscallVector[i]; local 243 const string returnTypeName = syscall->ReturnType()->TypeName(); 246 syscall->ReturnType()->SetHandler(create_status_t_type_handler()); 262 // init the syscall vector 284 // init the syscall map 287 Syscall *syscall local 296 record_syscall_stats(const Syscall& syscall, debug_post_syscall& message) argument 332 print_syscall(FILE *outputFile, Syscall* syscall, debug_pre_syscall &message, MemoryReader &memoryReader, bool printArguments, uint32 contentsFlags, bool colorize, bool decimal, thread_id ¤tThreadID) argument 385 print_syscall(FILE *outputFile, Syscall* syscall, debug_post_syscall &message, MemoryReader &memoryReader, bool printArguments, uint32 contentsFlags, bool printReturnValue, bool colorize, bool decimal, thread_id ¤tThreadID) argument 678 Syscall* syscall = get_syscall(buffer); local 852 Syscall* syscall = sSyscallVector[syscallNumber]; local 879 Syscall* syscall = sSyscallVector[syscallNumber]; local [all...] |
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_int.cpp | 246 uint32_t syscall = *(uint32_t *)(iframe->pc-4) & 0x00ffffff; local 247 TRACE("syscall number: %d\n", syscall); 250 if (syscall < kSyscallCount) { 251 TRACE("syscall(%s,%d)\n", 252 kExtendedSyscallInfos[syscall].name, 253 kExtendedSyscallInfos[syscall].parameter_count); 255 int argSize = kSyscallInfos[syscall].parameter_size; 261 dprintf("can't read syscall arguments on user stack\n"); 275 syscall_dispatcher(syscall, (voi [all...] |
/haiku/src/system/libroot/posix/glibc/include/arch/ppc/ |
H A D | sysdep.h | 190 #define DO_CALL(syscall) \ 191 li 0,syscall; \
|
/haiku/headers/private/kernel/ |
H A D | user_debugger.h | 253 void user_debug_pre_syscall(uint32 syscall, void *args); 254 void user_debug_post_syscall(uint32 syscall, void *args, uint64 returnValue,
|
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_int.cpp | 523 uint64 syscall = frame->t0; local 525 if (syscall < (uint64)kSyscallCount) { 526 uint32 argCnt = kExtendedSyscallInfos[syscall].parameter_count; 532 dprintf("can't read syscall arguments on user " 540 switch (syscall) { 547 // dprintf("syscall: %s\n", kExtendedSyscallInfos[syscall].name); 551 syscall_dispatcher(syscall, (void*)args, &returnValue);
|
/haiku/headers/os/kernel/ |
H A D | debugger.h | 188 B_DEBUGGER_MESSAGE_PRE_SYSCALL, // begin of a syscall 189 B_DEBUGGER_MESSAGE_POST_SYSCALL, // end of a syscall 515 uint32 syscall; // the syscall number member in struct:__anon68 516 uint8 args[128]; // syscall arguments 523 bigtime_t start_time; // time of syscall start 524 bigtime_t end_time; // time of syscall completion 525 uint64 return_value; // the syscall's return value 526 uint32 syscall; // the syscall numbe member in struct:__anon69 [all...] |
/haiku/src/system/kernel/arch/arm64/ |
H A D | arch_int.cpp | 44 // Instead this is called manually when handling IRQ or syscall. 329 uint32 syscall = imm >> 5; local 353 syscall_dispatcher(syscall, (void*)args, &frame->x[0]); 368 panic("syscall restart");
|
/haiku/src/system/kernel/debug/ |
H A D | user_debugger.cpp | 832 user_debug_pre_syscall(uint32 syscall, void *args) argument 840 // check whether pre-syscall tracing is enabled for team or thread 849 message.syscall = syscall; 851 // copy the syscall args 852 if (syscall < (uint32)kSyscallCount) { 853 if (kSyscallInfos[syscall].parameter_size > 0) 854 memcpy(message.args, args, kSyscallInfos[syscall].parameter_size); 863 user_debug_post_syscall(uint32 syscall, void *args, uint64 returnValue, argument 872 // check whether post-syscall tracin [all...] |
/haiku/src/libs/uuid/ |
H A D | gen_uuid.c | 139 jrand_seed[2] = jrand_seed[2] ^ syscall(__NR_gettid);
|
/haiku/src/kits/debugger/debugger_interface/local/ |
H A D | LocalDebuggerInterface.cpp | 902 message.post_syscall.syscall, message.post_syscall.args));
|