Add hw logs into before loop each steps 97/291997/1
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 26 Apr 2023 03:33:36 +0000 (12:33 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Wed, 26 Apr 2023 03:33:36 +0000 (12:33 +0900)
This patch is for debugging.

Change-Id: Ic57544c126bc6ddd70a9bef57796c7a3db28d3a7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/launchpad-process-pool/src/launchpad.c

index 8f1bd483a6da90ecaa5e210aaa4b7edb81df6d5d..5d1e66a06bd503ed0982864e8861843710daa0b9 100644 (file)
@@ -3500,11 +3500,14 @@ static int __before_loop(int argc, char **argv)
                return -1;
        }
 
+       _print_hwc_log("%s(%d): __sequencer_init done", __FUNCTION__, __LINE__);
+
        ret = _signal_init();
        if (ret < 0) {
                _E("Failed to initialize signal");
                return -1;
        }
+       _print_hwc_log("%s(%d): _signal_init done", __FUNCTION__, __LINE__);
 
        _signal_set_sigchld_cb(__handle_sigchild, NULL);
 
@@ -3513,36 +3516,53 @@ static int __before_loop(int argc, char **argv)
                _E("__init_launchpad_fd() failed");
                return -1;
        }
+       _print_hwc_log("%s(%d): __init_launchpad_fd done",
+                       __FUNCTION__, __LINE__);
 
        ret = __init_logger_fd();
        if (ret != 0) {
                _E("__init_logger_fd() failed");
                return -1;
        }
+       _print_hwc_log("%s(%d): __init_logger_fd done",
+                       __FUNCTION__, __LINE__);
 
        ret = __init_label_monitor_fd();
        if (ret != 0)
                _W("Failed to initialize label monitor");
+       _print_hwc_log("%s(%d): __init_label_monitor_fd done",
+                       __FUNCTION__, __LINE__);
 
        ret = _config_init();
        if (ret != 0)
                _W("Failed to initialize config");
+       _print_hwc_log("%s(%d): _config_init done", __FUNCTION__, __LINE__);
 
        ret = _dbus_init();
        if (ret != 0)
                _W("Failed to initialize dbus");
+       _print_hwc_log("%s(%d): _dbus_init done", __FUNCTION__, __LINE__);
 
        _inotify_init();
+       _print_hwc_log("%s(%d): _inotify_init done", __FUNCTION__, __LINE__);
+
        _memory_monitor_init();
+       _print_hwc_log("%s(%d): _memory_monitor_init done", __FUNCTION__, __LINE__);
+
        _memory_monitor_set_event_cb(__memory_monitor_cb, NULL);
        __register_vconf_events();
+       _print_hwc_log("%s(%d): __register_vconf_events done", __FUNCTION__, __LINE__);
 
        MAX_CPU_CHECK_COUNT = _config_get_int_value(
                        CONFIG_TYPE_CPU_CHECKER_MAX_COUNT);
        __add_default_slots();
+       _print_hwc_log("%s(%d): __add_default_slots done", __FUNCTION__, __LINE__);
+
        launcher_info_list = _launcher_info_load(LAUNCHER_INFO_PATH);
+       _print_hwc_log("%s(%d): _launcher_info_load done", __FUNCTION__, __LINE__);
 
        __add_app_defined_loaders();
+       _print_hwc_log("%s(%d): __add_app_defined_loaders done", __FUNCTION__, __LINE__);
 
        ret = _send_cmd_to_amd(LAUNCHPAD_LAUNCH_SIGNAL);
        if (ret < 0)
@@ -3556,11 +3576,17 @@ static int __before_loop(int argc, char **argv)
        }
 
        ret = _worker_create("cleaner+", &__cleaner);
+       _print_hwc_log("%s(%d): _worker_create done", __FUNCTION__, __LINE__);
+
        if (ret < 0)
                return ret;
 
        __init_app_defined_loader_monitor();
+       _print_hwc_log("%s(%d): __init_app_defined_loader_monitor done", __FUNCTION__, __LINE__);
+
        _log_init();
+       _print_hwc_log("%s(%d): _log_init done", __FUNCTION__, __LINE__);
+
        _print_hwc_log("%s(%d): END", __FUNCTION__, __LINE__);
 
        return 0;