Home
last modified time | relevance | path

Searched refs:signal (Results 1 - 25 of 30) sorted by relevance

12

/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dsighook.cpp105 // 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 Dsighook.h37 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 Dkill.cpp23 int Kill(uint64_t pid, int signal) in Kill() argument
25 return kill(pid, signal); in Kill()
/arkcompiler/ets_runtime/ecmascript/platform/
H A Daot_crash_info.h19 #include <signal.h>
30 void GetSignalHandler(int signal, siginfo_t *info, void *context);
/arkcompiler/ets_runtime/ecmascript/platform/windows/
H A Daot_crash_info.cpp20 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 DProcess.cpp58 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 Daot_crash_info.cpp25 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 Dtermination_2.js21 signal();
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dkill.cpp21 int Kill([[maybe_unused]] uint64_t pid, [[maybe_unused]] int signal) in Kill() argument
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Dkill.h23 // 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 Dapdump_server.py23 import signal namespace
271 signal.signal(signal.SIGINT, sigint_handler)
/arkcompiler/runtime_core/static_core/tests/gtest_launcher/
H A Dmain.cpp63 signal(TIMEOUT_SIGNAL, HandleTimeout); in main()
/arkcompiler/runtime_core/tests/gtest_launcher/
H A Dmain.cpp62 signal(TIMEOUT_SIGNAL, HandleTimeout); in main()
/arkcompiler/toolchain/tooling/test/
H A Ddebugger_cint_client_test.cpp32 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { in SetUpTestCase()
H A Ddebugger_client_test.cpp32 if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { in SetUpTestCase()
/arkcompiler/ets_frontend/test262/
H A Dutils.py22 import signal namespace
109 os.kill(proc.pid, signal.SIGTERM)
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
H A Dpgo_profiler_manager.cpp126 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 Dcpu_profiler.h106 static void GetStackSignalHandler(int signal, siginfo_t *siginfo, void *context);
H A Dcpu_profiler.cpp51 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 Dtest_breaks_props.py18 from signal import SIGTERM
/arkcompiler/runtime_core/disassembler/tests/
H A Dgen_pa_file.py22 import signal namespace
91 os.kill(proc.pid, signal.SIGTERM)
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dshell.py21 import signal namespace
211 os.getpgid(x.pid), signal.SIGKILL), [proc])
/arkcompiler/ets_runtime/ecmascript/quick_fix/
H A Dmain.cpp20 #include <signal.h> // NOLINTNEXTLINE(modernize-deprecated-headers)
/arkcompiler/ets_runtime/test/executiontest/
H A Dthread_termination_test.cpp55 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 Ddebug.py21 from signal import SIGTERM

Completed in 10 milliseconds

12