Module: kamailio
Branch: master
Commit: c6a6e738b538069c24aa63e8e0525695118d4a52
URL:
https://github.com/kamailio/kamailio/commit/c6a6e738b538069c24aa63e8e052569…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-06-03T15:16:29+02:00
doc/scripts: updated the script searching for counters
---
Modified: doc/scripts/cdefs2doc/dump_counters.pl
---
Diff:
https://github.com/kamailio/kamailio/commit/c6a6e738b538069c24aa63e8e052569…
Patch:
https://github.com/kamailio/kamailio/commit/c6a6e738b538069c24aa63e8e052569…
---
diff --git a/doc/scripts/cdefs2doc/dump_counters.pl
b/doc/scripts/cdefs2doc/dump_counters.pl
index cd392ddea6..55aee95cc0 100755
--- a/doc/scripts/cdefs2doc/dump_counters.pl
+++ b/doc/scripts/cdefs2doc/dump_counters.pl
@@ -6,10 +6,6 @@
# try -h for help)
# E.g.: dump_counters.pl --file tcp_stats.c --defs="-DUSE_SCTP ..."
#
-# History:
-# =======
-# 2010-09-01 initial version (Andrei Pelinescu-Onciul <andrei(a)iptel.org>)
-#
# Note: uses GCC::TranslationUnit (see cpan) with the following patch:
#@@ -251,6 +251,8 @@
@@ -35,7 +31,6 @@
use Getopt::Long;
use File::Temp qw(:mktemp);
use File::Basename;
-use lib "/home/andrei/perl/modules/share/perl/5.10.1";
use GCC::TranslationUnit;
# text printed if we discover that GCC::TranslationUnit is unpatched
@@ -44,7 +39,7 @@
# gcc name
my $gcc="gcc";
# default defines
-my $c_defs="-D__CPU_i386 -D__OS_linux -DSER_VER=2099099 -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DUSE_DNS_CACHE
-DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DUSE_TLS -DTLS_HOOKS -DFAST_LOCK
-DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_SCHED_SETSCHEDULER
-DHAVE_EPOLL -DUSE_SCTP -DNAME='\"ser\"'
-DVERSION='\"2.99.99-pre3\"' -DARCH='\"i386\"'
-DOS_QUOTED='\"linux\"' -DSER_MOD_INTERFACE";
+my $c_defs="DNAME='\"kamailio\"'
-DVERSION='\"5.1.0-dev3\"' -DARCH='\"x86_64\"'
-DOS='linux_' -DOS_QUOTED='\"linux\"' -DCOMPILER='\"gcc
4.9.2\"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=5001000
-DCFG_DIR='\"/usr/local/etc/kamailio/\"'
-DRUN_DIR='\"/var/run/kamailio/\"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE
-DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC
-DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS
-DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT
-DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H
-DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DHAVE_EPOLL -DHAVE_SIGIO_RT
-DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT";
# file with gcc syntax tree
my $file; #"tcp_options.c.001t.tu" ;