Skip to content

Commit

Permalink
Extend traceen to track&report call site.
Browse files Browse the repository at this point in the history
Also make traceen to report when it's being called.
  • Loading branch information
sobomax committed Sep 4, 2024
1 parent dc46a35 commit 3d9f57b
Show file tree
Hide file tree
Showing 59 changed files with 96 additions and 33 deletions.
1 change: 1 addition & 0 deletions libre/rtpp_re.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "rtpp_types.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"

struct ice_candpair;
Expand Down
1 change: 1 addition & 0 deletions modules/catch_dtmf/rtpp_catch_dtmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "rtpp_module_cplane.h"
#include "rtpp_log.h"
#include "rtpp_log_obj.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_cfg.h"
#include "rtpp_wi.h"
Expand Down
1 change: 1 addition & 0 deletions modules/dtls_gw/rtpp_dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "config_pp.h"

#include "rtpp_module.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_str.h"

Expand Down
1 change: 1 addition & 0 deletions modules/dtls_gw/rtpp_dtls_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "rtpp_log.h"
#include "rtpp_log_obj.h"
#include "rtpp_netio_async.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_str.h"
#include "rtpp_stream.h"
Expand Down
3 changes: 2 additions & 1 deletion modules/dtls_gw/rtpp_dtls_gw.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "rtpp_module_cplane.h"
#include "rtpp_log.h"
#include "rtpp_log_obj.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_cfg.h"
#include "rtpp_wi.h"
Expand Down Expand Up @@ -237,7 +238,7 @@ rtpp_dtls_gw_setup_sender(struct rtpp_module_priv *pvt,
int sidx, lport;
struct rtpp_socket *fd, *fds[2];

fd = CALL_SMETHOD(dtls_strmp, get_skt);
fd = CALL_SMETHOD(dtls_strmp, get_skt, HEREVAL);
if (fd != NULL) {
RTPP_OBJ_DECREF(fd);
return (0);
Expand Down
1 change: 1 addition & 0 deletions modules/ice_lite/rtpp_ice_lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "rtpp_module_cplane.h"
#include "rtpp_log.h"
#include "rtpp_log_obj.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_cfg.h"
#include "rtpp_wi.h"
Expand Down
1 change: 1 addition & 0 deletions scripts/fuzz/fuzz_rtp_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <unistd.h>

#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_stand.h"
#include "rtpp_log_obj.h"
Expand Down
1 change: 1 addition & 0 deletions scripts/fuzz/fuzz_rtp_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "rtpp_cfg.h"
#include "rtp.h"
#include "rtpp_time.h"
#include "rtpp_codeptr.h"
#include "rtp_packet.h"
#include "rtpp_session.h"
#include "rtpp_pipe.h"
Expand Down
1 change: 1 addition & 0 deletions src/advanced/pproc_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "rtpp_types.h"
#include "rtpp_debug.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtp_packet.h"
#include "rtpp_stream.h"
Expand Down
1 change: 1 addition & 0 deletions src/commands/rpcpv1_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "rtpp_log.h"
#include "rtpp_cfg.h"
#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtpp_pipe.h"
Expand Down
1 change: 1 addition & 0 deletions src/commands/rpcpv1_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include "rtpp_pipe.h"
#include "rtpp_session.h"
#include "rtpp_str.h"
#include "rtpp_codeptr.h"
#include "rtpp_stream.h"
#include "rtpp_weakref.h"

Expand Down
1 change: 1 addition & 0 deletions src/commands/rpcpv1_norecord.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include "rtpp_command_sub.h"
#include "rtpp_command_private.h"
#include "rtpp_defines.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtpp_pipe.h"
Expand Down
1 change: 1 addition & 0 deletions src/commands/rpcpv1_play.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "rtpp_command_sub.h"
#include "rtpp_command_private.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_stream.h"

struct play_opts {
Expand Down
1 change: 1 addition & 0 deletions src/commands/rpcpv1_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include "rtpp_pcnt_strm.h"
#include "rtpp_pcnts_strm.h"
#include "rtpp_pipe.h"
#include "rtpp_codeptr.h"
#include "rtpp_stream.h"
#include "rtpp_util.h"
#include "commands/rpcpv1_query.h"
Expand Down
3 changes: 2 additions & 1 deletion src/commands/rpcpv1_ul.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

#include "rtpp_debug.h"
#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_weakref.h"
#include "rtpp_log.h"
Expand Down Expand Up @@ -478,7 +479,7 @@ rtpp_command_ul_handle(const struct rtpp_cfg *cfsp, struct rtpp_command *cmd, in
if (sidx != -1) {
RTPP_DBG_ASSERT(cmd->cca.op == UPDATE || cmd->cca.op == LOOKUP);
spa = cmd->sp;
fd = CALL_SMETHOD(spa->rtp->stream[sidx], get_skt);
fd = CALL_SMETHOD(spa->rtp->stream[sidx], get_skt, HEREVAL);
if (fd == NULL || ulop->new_port != 0) {
if (ulop->local_addr != NULL) {
spa->rtp->stream[sidx]->laddr = ulop->local_addr;
Expand Down
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
#include <systemd/sd-daemon.h>
#endif

#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_runcreds.h"
#include "rtpp_cfile.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtp_analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "rtp.h"
#include "rtp_analyze.h"
#include "rtpp_math.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_ringbuf.h"

Expand Down
1 change: 1 addition & 0 deletions src/rtp_resizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "rtpp_stats.h"
#include "rtpp_mallocs.h"
#include "rtpp_ssrc.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"

struct rtp_resizer {
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_acct.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "rtpp_pcnts_strm.h"
#include "rtpp_pcount.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_acct_pipe.h"
#include "rtpp_acct.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_acct_rtcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "rtpa_stats.h"
#include "rtpp_types.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_acct_rtcp.h"
#include "rtp.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_analyzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "rtpp_ssrc.h"
#include "rtpa_stats.h"
#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtp.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_cfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "rtpp_log_obj.h"
#include "rtpp_module_if.h"
#include "rtpp_modman.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "ucl.h"
#include "rtpp_ucl.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_command.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "rtpp_defines.h"
#include "rtpp_types.h"
#include "rtpp_log_obj.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_time.h"
#include "rtpp_command.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_command_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "rtpp_log.h"
#include "rtpp_cfg.h"
#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtpp_time.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_command_rcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "rtpp_command_rcache_fin.h"
#include "rtpp_hash_table.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_timed.h"
#include "rtpp_timed_task.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_hash_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "rtpp_hash_table.h"
#include "rtpp_hash_table_fin.h"
#include "rtpp_xxHash.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_mallocs.h"

Expand Down
1 change: 1 addition & 0 deletions src/rtpp_modman.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "rtpp_types.h"
#include "rtpp_list.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_modman.h"
#include "rtpp_module.h"
Expand Down
2 changes: 0 additions & 2 deletions src/rtpp_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

#define MODULE_API_REVISION 11

#include "rtpp_codeptr.h"

struct rtpp_cfg;
struct rtpp_module_priv;
struct rtpp_module_conf;
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_module_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include "rtpp_pcount.h"
#include "rtpp_time.h"
#include "rtpp_pcnts_strm.h"
#include "rtpp_codeptr.h"
#include "rtpp_stream.h"
#include "rtpp_pipe.h"
#include "rtpp_session.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_netaddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <string.h>

#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_mallocs.h"
#include "rtpp_netaddr.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_netio_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include "rtpp_wi_pkt.h"
#include "rtpp_wi_sgnl.h"
#include "rtpp_wi_private.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtpp_queue.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

#include "rtpp_log.h"
#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtpp_network.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_objck.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#include "rtpp_queue.h"
#include "rtpp_netaddr.h"
#include "rtpp_network.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_stats.h"
#include "rtpp_time.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_pcnt_strm.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#include "rtpp_types.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_time.h"
#include "rtpp_pcnt_strm.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "rtpp_types.h"
#include "rtpp_mallocs.h"
#include "rtpp_pcount.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtpp_weakref.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_port_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include "rtpp_types.h"
#include "rtpp_mallocs.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_port_table.h"
#include "rtpp_port_table_fin.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "rtpp_defines.h"
#include "rtpp_proc.h"
#include "rtpp_record.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_sessinfo.h"
#include "rtpp_stream.h"
Expand Down
2 changes: 1 addition & 1 deletion src/rtpp_proc_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#include "rtpp_time.h"
#include "rtpp_pipe.h"
#include "rtpp_epoll.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_debug.h"
#include "rtpp_stream.h"
Expand All @@ -71,7 +72,6 @@
#include "rtp_packet.h"
#include "rtpp_ttl.h"
#include "rtpp_threads.h"
#include "rtpp_codeptr.h"
#include "advanced/pproc_manager.h"
#include "advanced/packet_processor.h"

Expand Down
1 change: 1 addition & 0 deletions src/rtpp_proc_servers.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

#include "rtpp_cfg.h"
#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_weakref.h"
#include "rtpp_hash_table.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_proc_ttl.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include "rtpp_hash_table.h"
#include "rtpp_weakref.h"
#include "rtpp_proc_ttl.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_mallocs.h"
#include "rtpp_pipe.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_proc_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

#include "rtpp_types.h"
#include "rtpp_debug.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_mallocs.h"
#include "rtpp_time.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <string.h>

#include "rtpp_types.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_queue.h"
#include "rtpp_mallocs.h"
Expand Down
1 change: 1 addition & 0 deletions src/rtpp_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include "rtpp_ip_chksum.h"
#include "rtpp_debug.h"
#include "rtpp_defines.h"
#include "rtpp_codeptr.h"
#include "rtpp_refcnt.h"
#include "rtpp_log_obj.h"
#include "rtpp_mallocs.h"
Expand Down
Loading

0 comments on commit 3d9f57b

Please sign in to comment.