aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/scheduler_trx.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-09-26 18:35:01 +0200
committerHarald Welte <laforge@osmocom.org>2020-09-26 19:16:52 +0200
commita643a72042775de0ce2fed48ee15891de78e91af (patch)
treefc616ec0ffecc70d8356040c448d218fc3d3d5d3 /src/osmo-bts-trx/scheduler_trx.c
parent742590b5df0e9a41330593938f1f7ae941861e63 (diff)
initial support for static userspace probes via systemtaplaforge/usdt
This adds a --enable-systemtap configure option, which will then add static tracepoints to the generated osmo-bts-* binary. At this point, only two sets of tracepoints are supported, and only in osmo-bts-trx: ul_data_{start,done} and dl_rst_{start,done}. The probes are intended to be used for analyzing the amount of time needed for processing of uplink bursts / generation of downlink bursts. Change-Id: Ibb4962253f1a195dc1a54405bac058ccb2545799
Diffstat (limited to 'src/osmo-bts-trx/scheduler_trx.c')
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index fcd1eeef..689a59d4 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -46,6 +46,7 @@
#include "l1_if.h"
#include "trx_if.h"
+#include "probes.h"
/* an IDLE burst returns nothing. on C0 it is replaced by dummy burst */
int tx_idle_fn(struct l1sched_trx *l1t, enum trx_chan_type chan,
@@ -84,7 +85,9 @@ static void trx_sched_fn(struct gsm_bts *bts, const uint32_t fn)
/* process every TS of TRX */
for (tn = 0; tn < ARRAY_SIZE(l1t->ts); tn++) {
/* ready-to-send */
+ OSMO_BTS_TRX_DL_RTS_START(trx->nr, tn, sched_fn);
_sched_rts(l1t, tn, GSM_TDMA_FN_SUM(sched_fn, plink->u.osmotrx.rts_advance));
+ OSMO_BTS_TRX_DL_RTS_DONE(trx->nr, tn, sched_fn);
/* All other parameters to be set by _sched_dl_burst() */
br = (struct trx_dl_burst_req) {