aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_main.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-10-07 15:26:00 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2012-12-18 10:02:20 +0100
commitb83e2a7d5cae302fb33ad56fa6dbad7906165909 (patch)
treed398de81ccc921a64076baf0ca15202477b39594 /src/pcu_main.cpp
parent5cae087ae9ed58910af69e9869b5dca4c0234628 (diff)
Adding flow chart diagram of ongoing TBFs and their events
It is quite essential. It shows how TBFs are related and helps to estimate states and timers (timeouts) of the MS. In order to use it, it must be defined by a switch at gprs_rlcmac.h.
Diffstat (limited to 'src/pcu_main.cpp')
-rw-r--r--src/pcu_main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index ee6f70c4..142c9f98 100644
--- a/src/pcu_main.cpp
+++ b/src/pcu_main.cpp
@@ -41,6 +41,10 @@ extern struct vty_app_info pcu_vty_info;
void *tall_pcu_ctx;
static int quit = 0;
+#ifdef DEBUG_DIAGRAM
+extern struct timeval diagram_time;
+#endif
+
static void print_help()
{
printf( "Some useful options:\n"
@@ -206,6 +210,9 @@ int main(int argc, char *argv[])
osmo_gsm_timers_update();
osmo_select_main(0);
+#ifdef DEBUG_DIAGRAM
+ gettimeofday(&diagram_time, NULL);
+#endif
}
telnet_exit();