diff options
| author | yangwei <[email protected]> | 2024-02-26 15:35:27 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-02-26 15:35:27 +0800 |
| commit | f5cd63b9b0b9312ed9ee871e89fc14093249061d (patch) | |
| tree | 37cc964f743e589cbc01262fe2dde407cba41307 /src/timer | |
| parent | 90209da0af1d53eb210ebd1f4cfc012599d34f7b (diff) | |
🌈 style(sapp process output thread info): 处理延迟日志增加输出pthread_id和tid方便调试
Diffstat (limited to 'src/timer')
| -rw-r--r-- | src/timer/sapp_timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timer/sapp_timer.c b/src/timer/sapp_timer.c index 3b85e7a..b46f973 100644 --- a/src/timer/sapp_timer.c +++ b/src/timer/sapp_timer.c @@ -462,7 +462,8 @@ static void sapp_watch_dog(void) sapp_runtime_log(RLOG_LV_FATAL, "##### detect deadlock in PID:%ld, at timestamp:%ld, thread index:%d, TID(LWP):%u, sd_notify_enable:%d, deadlock_detected:%d, deadlock_cnt:%d #####", getpid(), ABBR_CURRENT_TIME, thread_index, sapp_global_val->individual_fixed.thread_tid[thread_index], sd_notify_enable, deadlock_detected, deadlock_cnt); } - sapp_process_latency_log(RLOG_LV_FATAL, "sapp_watch_dog detect deadlock at timestamp:%ld, send SIGUSR2 to thread index:%d, tid:%llu", ABBR_CURRENT_TIME, thread_index, sapp_global_val->individual_fixed.thread_obtain_id[thread_index]); + sapp_process_latency_log(RLOG_LV_FATAL, "sapp_watch_dog detect deadlock at timestamp:%ld, send SIGUSR2 to thread index:%d, pthread_id:%llu, tid:%d", + ABBR_CURRENT_TIME, thread_index, sapp_global_val->individual_fixed.thread_obtain_id[thread_index], sapp_global_val->individual_fixed.thread_tid[thread_index]); if(MESA_handle_runtime_log_level_enabled(ABBR_PROCESS_LATENCY_LOG_HANDLE, RLOG_LV_FATAL)) { pthread_kill(sapp_global_val->individual_fixed.thread_obtain_id[thread_index], SIGUSR2); |
