/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | sighook.cpp | 105 // SIGSEGV from signal handler must be handled as well in RegisterAction() 110 // SA_NODEFER+: do not block signals from the signal handler in RegisterAction() 111 // SA_ONSTACK-: call signal handler on the same stack in RegisterAction() 217 kill(getpid(), signo); // send signal again in CallOldAction() 291 LOG(FATAL, RUNTIME) << "Actually signal:" << signo << " | register sigaction's handler == SIG_DFL"; in Handler() 341 static int RegisterUserHandler(int signal, const struct sigaction *newAction, struct sigaction *oldAction, in RegisterUserHandler() argument 344 // just hook signal in range, other use libc sigaction in RegisterUserHandler() 345 if (signal <= 0 || signal >= _NSIG) { in RegisterUserHandler() 346 LOG(ERROR, RUNTIME) << "illegal signal " << signa in RegisterUserHandler() 420 RegisterHookHandler(int signal, const SighookAction *sa) RegisterHookHandler() argument 434 RemoveHookHandler(int signal, bool (*action)(int, siginfo_t *, void *)) RemoveHookHandler() argument 447 CheckOldHookHandler(int signal) CheckOldHookHandler() argument 468 AddSpecialSignalHandlerFn(int signal, SigchainAction *sa) AddSpecialSignalHandlerFn() argument 473 RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t *, void *)) RemoveSpecialSignalHandlerFn() argument 480 EnsureFrontOfChain(int signal) EnsureFrontOfChain() argument [all...] |
H A D | sighook.h | 37 extern "C" void RegisterHookHandler(int signal, const SighookAction *sa); 38 extern "C" void RemoveHookHandler(int signal, bool (*action)(int, siginfo_t *, void *)); 39 extern "C" void CheckOldHookHandler(int signal); 50 extern "C" PANDA_PUBLIC_API void AddSpecialSignalHandlerFn(int signal, SigchainAction *sa); 51 extern "C" PANDA_PUBLIC_API void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t *, void *)); 52 extern "C" void EnsureFrontOfChain(int signal);
|
H A D | kill.cpp | 23 int Kill(uint64_t pid, int signal) in Kill() argument 25 return kill(pid, signal); in Kill()
|
/arkcompiler/ets_runtime/ecmascript/platform/ |
H A D | aot_crash_info.h | 19 #include <signal.h> 30 void GetSignalHandler(int signal, siginfo_t *info, void *context);
|
/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
H A D | aot_crash_info.cpp | 20 void GetSignalHandler(int signal, siginfo_t *info, void *context) in GetSignalHandler() argument 22 (void)signal; in GetSignalHandler()
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/escompat/ |
H A D | Process.cpp | 58 static void SpawnChildProcess(EtsEnv *env, ets_object child, ets_string cmd, ets_int timeout, ets_int signal) in SpawnChildProcess() argument 99 auto terminator = [timeout, signal, pidToTerminate] { in SpawnChildProcess() 102 if (g_terminatedChildSet.count(pidToTerminate) == 0 && kill(pidToTerminate, signal) == 0) { in SpawnChildProcess() 104 if (std::find(signalType.begin(), signalType.end(), signal) != signalType.end()) { in SpawnChildProcess() 245 static void KillChildProcess(EtsEnv *env, ets_object child, ets_int signal) in KillChildProcess() argument 249 auto intSignal = static_cast<int>(signal); in KillChildProcess() 331 static ets_boolean PManagerKill(EtsEnv *env, [[maybe_unused]] ets_object process, ets_double signal, ets_double pid) in PManagerKill() argument 345 if (std::trunc(signal) != signal || signal < MIN_SIGNAL_VALU in PManagerKill() [all...] |
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
H A D | aot_crash_info.cpp | 25 void GetSignalHandler(int signal, siginfo_t *info, void *context) in GetSignalHandler() argument 42 sigaction(signal, &s_oldSa[signal], nullptr); in GetSignalHandler() 45 LOG_ECMA(ERROR) << "GetSignalHandler() failed to resend signal during crash"; in GetSignalHandler()
|
/arkcompiler/ets_runtime/test/executiontest/js/ |
H A D | termination_2.js | 21 signal();
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | kill.cpp | 21 int Kill([[maybe_unused]] uint64_t pid, [[maybe_unused]] int signal) in Kill() argument
|
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
H A D | kill.h | 23 // Kill a process with a specific process id using a specific signal 24 PANDA_PUBLIC_API int Kill(uint64_t pid, int signal);
|
/arkcompiler/ets_runtime/tools/ap_file_viewer/server/ |
H A D | apdump_server.py | 23 import signal namespace 271 signal.signal(signal.SIGINT, sigint_handler)
|
/arkcompiler/runtime_core/static_core/tests/gtest_launcher/ |
H A D | main.cpp | 63 signal(TIMEOUT_SIGNAL, HandleTimeout); in main()
|
/arkcompiler/runtime_core/tests/gtest_launcher/ |
H A D | main.cpp | 62 signal(TIMEOUT_SIGNAL, HandleTimeout); in main()
|
/arkcompiler/toolchain/tooling/test/ |
H A D | debugger_cint_client_test.cpp | 32 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { in SetUpTestCase()
|
H A D | debugger_client_test.cpp | 32 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { in SetUpTestCase()
|
/arkcompiler/ets_frontend/test262/ |
H A D | utils.py | 22 import signal namespace 109 os.kill(proc.pid, signal.SIGTERM)
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler_manager.cpp | 126 LOG_ECMA(ERROR) << "Can not register pgo saving signal, because encoder is null."; in RegisterSavingSignal() 130 LOG_ECMA(DEBUG) << "Can not register pgo saving signal, because encoder is initialized."; in RegisterSavingSignal() 133 signal(PGO_SAVING_SIGNAL, SavingSignalHandler); in RegisterSavingSignal()
|
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/ |
H A D | cpu_profiler.h | 106 static void GetStackSignalHandler(int signal, siginfo_t *siginfo, void *context);
|
H A D | cpu_profiler.cpp | 51 if (generator_->SemInit(2, 0, 0) != 0) { // 2: signal 2 in CpuProfiler() 244 if (generator_->SemDestroy(2) != 0) { // 2: signal 2 in ~CpuProfiler() 374 void CpuProfiler::GetStackSignalHandler(int signal, [[maybe_unused]] siginfo_t *siginfo, void *context) in GetStackSignalHandler() argument 376 if (signal != SIGPROF) { in GetStackSignalHandler()
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/ |
H A D | test_breaks_props.py | 18 from signal import SIGTERM
|
/arkcompiler/runtime_core/disassembler/tests/ |
H A D | gen_pa_file.py | 22 import signal namespace 91 os.kill(proc.pid, signal.SIGTERM)
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | shell.py | 21 import signal namespace 211 os.getpgid(x.pid), signal.SIGKILL), [proc])
|
/arkcompiler/ets_runtime/ecmascript/quick_fix/ |
H A D | main.cpp | 20 #include <signal.h> // NOLINTNEXTLINE(modernize-deprecated-headers)
|
/arkcompiler/ets_runtime/test/executiontest/ |
H A D | thread_termination_test.cpp | 55 FunctionCallbackInfo signal)
in RegisterGlobalTemplate() 63 globalObj->Set(vm, StringRef::NewFromUtf8(vm, "signal"), FunctionRef::New(
in RegisterGlobalTemplate() 54 RegisterGlobalTemplate(const EcmaVM *vm, FunctionCallbackInfo terminate, FunctionCallbackInfo fail, FunctionCallbackInfo signal) RegisterGlobalTemplate() argument
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/ |
H A D | debug.py | 21 from signal import SIGTERM
|