summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Kostyra <l.kostyra@samsung.com>2020-07-27 19:12:23 +0200
committerLukasz Kostyra <l.kostyra@samsung.com>2020-07-27 19:16:48 +0200
commit69f151633de0cf0d8d8258ea1fd41898db42c5dc (patch)
tree62aa1e7bfc9444515a745c4361b86705b9265915
parentf32f5db2d278c4b7561f753015f5737488b995d4 (diff)
downloadqemu-tizen.tar.gz
qemu-tizen.tar.bz2
qemu-tizen.zip
Don't look up pid/tid on YAGL_LOG_FUNC_SETHEADtizen
YAGL_LOG_FUNC_SET looks into cur_ts global variable to read current PID/TID. Unforutnately on multithreaded app scenarios, this can cause a segmentation failure so was temporarily removed. Change-Id: I253c9e38545b98d47dcdcd485966c5a838145ffb Signed-off-by: Lukasz Kostyra <l.kostyra@samsung.com>
-rw-r--r--hw/yagl/yagl_log.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/yagl/yagl_log.h b/hw/yagl/yagl_log.h
index 8a8a7a58c6..4479108f58 100644
--- a/hw/yagl/yagl_log.h
+++ b/hw/yagl/yagl_log.h
@@ -123,10 +123,12 @@ bool yagl_log_is_enabled_for_func_tracing(void);
} \
} while(0)
+// TODO _yagl_log_current_pid/tid must be restored to proper form
+// PID/TID must be read in a different way than via global cur_ts
#define YAGL_LOG_FUNC_SET(func) \
const char* _yagl_log_current_func = #func; \
- yagl_pid _yagl_log_current_pid = (cur_ts ? cur_ts->ps->id : 0); \
- yagl_tid _yagl_log_current_tid = (cur_ts ? cur_ts->id : 0)
+ yagl_pid _yagl_log_current_pid = 0; \
+ yagl_tid _yagl_log_current_tid = 0
#define YAGL_LOG_FUNC_ENTER(func, format, ...) \
YAGL_LOG_FUNC_SET(func); \