Lines Matching refs:t_p

384 send_to_tracer_nif(Process *c_p, ErtsPTabElementCommon *t_p,
396 ErtsPTabElementCommon *t_p,
1293 Process *t_p, Eterm what, Eterm data) in trace_proc() argument
1296 if (is_tracer_enabled(NULL, 0, &t_p->common, &tnif, in trace_proc()
1298 send_to_tracer_nif(NULL, &t_p->common, t_p->common.id, tnif, TRACE_FUN_T_PROCS, in trace_proc()
1676 trace_port(Port *t_p, Eterm what, Eterm data) { in trace_port() argument
1679 ERTS_LC_ASSERT(erts_lc_is_port_locked(t_p) in trace_port()
1682 if (is_tracer_enabled(NULL, 0, &t_p->common, &tnif, TRACE_FUN_E_PORTS, what)) in trace_port()
1683 send_to_tracer_nif(NULL, &t_p->common, t_p->common.id, tnif, TRACE_FUN_T_PORTS, in trace_port()
1721 trace_port_receive(Port *t_p, Eterm caller, Eterm what, ...) in trace_port_receive() argument
1724 ERTS_LC_ASSERT(erts_lc_is_port_locked(t_p) in trace_port_receive()
1727 if (is_tracer_enabled(NULL, 0, &t_p->common, &tnif, TRACE_FUN_E_RECEIVE, am_receive)) { in trace_port_receive()
1821 send_to_tracer_nif(NULL, &t_p->common, t_p->common.id, tnif, in trace_port_receive()
1837 trace_port_send(Port *t_p, Eterm receiver, Eterm msg, int exists) in trace_port_send() argument
1841 ERTS_LC_ASSERT(erts_lc_is_port_locked(t_p) in trace_port_send()
1844 if (is_tracer_enabled(NULL, 0, &t_p->common, &tnif, TRACE_FUN_E_SEND, op)) in trace_port_send()
1845 send_to_tracer_nif(NULL, &t_p->common, t_p->common.id, tnif, TRACE_FUN_T_SEND, in trace_port_send()
1849 void trace_port_send_binary(Port *t_p, Eterm to, Eterm what, char *bin, Sint sz) in trace_port_send_binary() argument
1852 ERTS_LC_ASSERT(erts_lc_is_port_locked(t_p) in trace_port_send_binary()
1855 if (is_tracer_enabled(NULL, 0, &t_p->common, &tnif, TRACE_FUN_E_SEND, am_send)) { in trace_port_send_binary()
1871 msg = TUPLE2(hp, t_p->common.id, msg); in trace_port_send_binary()
1874 send_to_tracer_nif(NULL, &t_p->common, t_p->common.id, tnif, TRACE_FUN_T_SEND, in trace_port_send_binary()
1898 trace_sched_ports_where(Port *t_p, Eterm what, Eterm where) { in trace_sched_ports_where() argument
1900 ERTS_LC_ASSERT(erts_lc_is_port_locked(t_p) in trace_sched_ports_where()
1903 if (is_tracer_enabled(NULL, 0, &t_p->common, &tnif, TRACE_FUN_E_SCHED_PORT, what)) in trace_sched_ports_where()
1904 send_to_tracer_nif(NULL, &t_p->common, t_p->common.id, in trace_sched_ports_where()
2810 send_to_tracer_nif(Process *c_p, ErtsPTabElementCommon *t_p, in send_to_tracer_nif() argument
2819 if (is_internal_pid(t_p->id)) { in send_to_tracer_nif()
2821 ERTS_LC_ASSERT(erts_proc_lc_my_proc_locks((Process*)t_p) & ERTS_PROC_LOCKS_ALL); in send_to_tracer_nif()
2823 ASSERT(is_internal_port(t_p->id)); in send_to_tracer_nif()
2824 ERTS_LC_ASSERT(erts_lc_is_port_locked((Port*)t_p)); in send_to_tracer_nif()
2829 is_internal_pid(t_p->id) ? (Process*)t_p : NULL, in send_to_tracer_nif()
2830 t_p->tracer, t_p->trace_flags, in send_to_tracer_nif()
2862 ErtsPTabElementCommon *t_p, in is_tracer_enabled() argument
2867 ASSERT(t_p); in is_tracer_enabled()
2873 if (is_internal_pid(t_p->id)) { in is_tracer_enabled()
2875 ERTS_LC_ASSERT(erts_proc_lc_my_proc_locks((Process*)t_p) & ERTS_PROC_LOCKS_ALL in is_tracer_enabled()
2878 ASSERT(is_internal_port(t_p->id)); in is_tracer_enabled()
2879 ERTS_LC_ASSERT(erts_lc_is_port_locked((Port*)t_p) in is_tracer_enabled()
2884 nif_result = call_enabled_tracer(t_p->tracer, tnif_ret, topt, tag, t_p->id); in is_tracer_enabled()
2898 if (is_internal_port(t_p->id) || (c_p && c_p->common.id == t_p->id)) { in is_tracer_enabled()
2902 if (is_internal_pid(t_p->id)) { in is_tracer_enabled()
2913 erts_tracer_replace(t_p, erts_tracer_nil); in is_tracer_enabled()
2914 t_p->trace_flags &= ~TRACEE_FLAGS; in is_tracer_enabled()
2924 int erts_is_tracer_enabled(const ErtsTracer tracer, ErtsPTabElementCommon *t_p) in erts_is_tracer_enabled() argument
2931 t_p->id); in erts_is_tracer_enabled()
2943 ErtsPTabElementCommon *t_p) in erts_is_tracer_proc_enabled() argument
2945 return is_tracer_enabled(c_p, c_p_locks, t_p, NULL, TRACE_FUN_ENABLED, in erts_is_tracer_proc_enabled()
2950 ErtsPTabElementCommon *t_p) in erts_is_tracer_proc_enabled_send() argument
2952 return is_tracer_enabled(c_p, c_p_locks, t_p, NULL, TRACE_FUN_T_SEND, am_send); in erts_is_tracer_proc_enabled_send()
2956 void erts_tracer_replace(ErtsPTabElementCommon *t_p, const ErtsTracer tracer) in erts_tracer_replace() argument
2959 if (is_internal_pid(t_p->id) && !erts_thr_progress_is_blocking()) { in erts_tracer_replace()
2960 erts_proc_lc_chk_have_proc_locks((Process*)t_p, ERTS_PROC_LOCKS_ALL); in erts_tracer_replace()
2961 } else if (is_internal_port(t_p->id)) { in erts_tracer_replace()
2962 ERTS_LC_ASSERT(erts_lc_is_port_locked((Port*)t_p) in erts_tracer_replace()
2966 if (ERTS_TRACER_COMPARE(t_p->tracer, tracer)) in erts_tracer_replace()
2969 erts_tracer_update(&t_p->tracer, tracer); in erts_tracer_replace()