Ejemplo n.º 1
0
void TRACE_msg_process_destroy (const char *process_name, int process_pid, msg_host_t host)
{
  int len = INSTR_DEFAULT_STR_SIZE;
  char str[INSTR_DEFAULT_STR_SIZE];

  container_t process = PJ_container_get (instr_process_id_2 (process_name, process_pid, str, len));
  PJ_container_remove_from_parent (process);
  PJ_container_free (process);
}
Ejemplo n.º 2
0
void TRACE_msg_process_create (const char *process_name, int process_pid, msg_host_t host)
{
  if (TRACE_msg_process_is_enabled()){
    int len = INSTR_DEFAULT_STR_SIZE;
    char str[INSTR_DEFAULT_STR_SIZE];

    container_t host_container = PJ_container_get (sg_host_get_name(host));
    PJ_container_new(instr_process_id_2(process_name, process_pid, str, len), INSTR_MSG_PROCESS, host_container);
  }
}
Ejemplo n.º 3
0
void TRACE_msg_process_destroy (const char *process_name, int process_pid)
{
  if (TRACE_msg_process_is_enabled()) {
    int len = INSTR_DEFAULT_STR_SIZE;
    char str[INSTR_DEFAULT_STR_SIZE];

    container_t process = PJ_container_get_or_null(instr_process_id_2(process_name, process_pid, str, len));
    if (process) {
      PJ_container_remove_from_parent (process);
      PJ_container_free (process);
    }
  }
}
Ejemplo n.º 4
0
char *instr_process_id (msg_process_t proc, char *str, int len)
{
  return instr_process_id_2 (proc->name.c_str(), proc->pid, str, len);//MSG_process_get_name(proc), MSG_process_get_PID(proc), str, len);
}