This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.
Jacob Erlbeck jerlbeck at sysmocom.deThis adds debug logging to the AGCH queue operations. Sponsored-by: On-Waves ehf --- src/common/bts.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/common/bts.c b/src/common/bts.c index 2a6c1bd..c834786 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -301,6 +301,12 @@ int bts_agch_enqueue(struct gsm_bts *bts, struct msgb *msg) msgb_enqueue(&btsb->agch_queue, msg); btsb->agch_queue_length++; + LOGP(DSUM, LOGL_DEBUG, + "AGCH: enqueued message type 0x%02x, length = %d/%d, msg = %s\n", + ((struct gsm48_imm_ass *)msgb_l3(msg))->msg_type, + btsb->agch_queue_length, btsb->agch_max_queue_length, + osmo_hexdump(msgb_l3(msg), msgb_l3len(msg))); + return 0; } @@ -312,6 +318,10 @@ struct msgb *bts_agch_dequeue(struct gsm_bts *bts) return NULL; btsb->agch_queue_length--; + LOGP(DSUM, LOGL_DEBUG, + "AGCH: dequeued message type 0x%02x, length = %d/%d\n", + ((struct gsm48_imm_ass *)msgb_l3(msg))->msg_type, + btsb->agch_queue_length, btsb->agch_max_queue_length); return msg; } @@ -332,6 +342,10 @@ int bts_ccch_copy_msg(struct gsm_bts *bts, uint8_t *out_buf, struct gsm_time *gt memcpy(out_buf, msgb_l3(msg), msgb_l3len(msg)); rc = msgb_l3len(msg); + LOGP(DSUM, LOGL_DEBUG, + "AGCH: copied message type 0x%02x to %s block\n", + ((struct gsm48_imm_ass *)msgb_l3(msg))->msg_type, + is_ag_res ? "AGCH" : "PCH"); msgb_free(msg); return rc; -- 1.7.9.5