Dynamic tracing does not work with plmd. plmd overrides the USR2 signal with its own dump routine.
Remove the signal hander code for USR2 in plmd. --- src/plm/plmd/plms_main.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/plm/plmd/plms_main.c b/src/plm/plmd/plms_main.c index 23b019444..5de1f461e 100644 --- a/src/plm/plmd/plms_main.c +++ b/src/plm/plmd/plms_main.c @@ -70,20 +70,6 @@ static void sigusr1_handler(int sig) ncs_sel_obj_ind(&plms_cb->usr1_sel_obj); } -static void usr2_sig_handler(int sig) -{ - PLMS_CB *cb = plms_cb; - PLMS_EVT *evt; - evt = (PLMS_EVT *)malloc(sizeof(PLMS_EVT)); - memset(evt, 0, sizeof(PLMS_EVT)); - evt->req_res = PLMS_REQ; - evt->req_evt.req_type = PLMS_DUMP_CB_EVT_T; - (void)sig; - /* Put it in PLMS's Event Queue */ - m_NCS_IPC_SEND(&cb->mbx, (NCSCONTEXT)evt, NCS_IPC_PRIORITY_HIGH); - signal(SIGUSR2, usr2_sig_handler); -} - /**************************************************************************** * Name : plms_db_init * @@ -327,12 +313,6 @@ static uint32_t plms_init() rc = NCSCC_RC_FAILURE; goto done; } - /* Initialize a signal handler for debugging purpose */ - if ((signal(SIGUSR2, usr2_sig_handler)) == SIG_ERR) { - LOG_ER("signal USR2 failed: %s", strerror(errno)); - rc = NCSCC_RC_FAILURE; - goto done; - } if (!cb->nid_started && plms_amf_register() != NCSCC_RC_SUCCESS) { LOG_ER("AMF Initialization failed"); -- 2.13.6 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel