aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/debug.h
AgeCommit message (Collapse)AuthorFilesLines
2017-03-16add DIUCS debug log constantNeels Hofmeyr1-0/+1
Change-Id: Id347a3024fa495a1ab680db7320648d933a4018b
2017-03-16Use libvlr in libmsc (large refactoring)Neels Hofmeyr1-5/+1
Original libvlr code is by Harald Welte <laforge@gnumonks.org>, polished and tweaked by Neels Hofmeyr <nhofmeyr@sysmocom.de>. This is a long series of development collapsed in one patch. The original history may still be available as branch neels/vlr_orig. TODO: This commit may be split in several smaller changes before merging to master. Related: OS#1592 Change-Id: I702ba504ce2de93507312c28eca8d11f09f4ee8b
2017-03-08add struct bsc_subscr, separating libbsc from gsm_subscriberNeels Hofmeyr1-1/+2
In a future commit, gsm_subscriber will be replaced by vlr_subscr, and it will not make sense to use vlr_subscr in libbsc. Thus we need a dedicated BSC subscriber: struct bsc_subscr. Add rf_policy arg to bsc_grace_paging_request() because the bsc_subscr will no longer have a backpointer to gsm_network (used to be via subscr->group). Create a separate logging filter for the new BSC subscriber. The implementation of adjusting the filter context is added in libbsc to not introduce bsc_subscr_get/_put() dependencies to libcommon. During Paging Response, fetch a bsc_subscr from the mobile identity, like we do for the gsm_subscriber. It looks like a duplication now, but will make sense for the VLR as well as for future MSC split patches. Naming: it was requested to not name the new struct bsc_sub, because 'sub' is too ambiguous. At the same time it would be fine to have 'bsc_sub_' as function prefix. Instead of struct bsc_subscriber and bsc_sub_ prefix, I decided to match both up as struct bsc_subscr and bsc_subscr_ function prefix. It's fast to type, relatively short, unambiguous, and the naming is consistent. Add bsc_subscr unit test. Related: OS#1592, OS#1594 Change-Id: Ia61cc00e8bb186b976939a4fc8f7cf9ce6aa3d8e
2017-02-22debug.h/c: remove unused cruft / cosmetic tweaksNeels Hofmeyr1-11/+1
Change-Id: I9601d478763569933bcc46bf4eaaff70a9843be9
2017-02-22logging: use central filter and ctx consts from libosmocoreNeels Hofmeyr1-15/+0
The LCHAN and BTS filter contexts are actually never used, so drop them until someone adds them properly. For now use only LOGGING_{FILTER,CTX}_VLR_SUBSCR. Some of these will change to _BSC_SUBSCR once struct bsc_subscriber is introduced, and later on, struct gsm_subscriber will be replaced by vlr_subscriber so that the names will match. Depends: libosmocore change-id I5c343630020f4b108099696fd96c2111614c8067 Change-Id: Ifa82f6a461ad4c0eeddb8a38fb3833460432d16b
2016-09-24V.42bis: integration and unit testPhilipp1-0/+1
- Edit previously committed V.42bis implementation to function outside IAXmodem. - Add unit test to verify the correct function of V.42bis Change-Id: I689413f2541b6def0625ce6bd96f1f488f05f99d
2016-09-24RFC1144: integration and unit-testPhilipp1-0/+1
The previously pushed slhc implementation has been modified to compile and function outside of the kernel. Also debug log messages were added and datatypes ware matched. The implementation is now ready to be used Change-Id: I7a638e88a43b3eb9d006751a03ef2570e36613f0
2016-06-13add DSUA debug constantDaniel Willmann1-0/+1
Change-Id: I4a3a8189564345700ea4825983ab39a8411227f4
2016-06-10add DRANAP debug constantDaniel Willmann1-0/+1
Change-Id: I6132198ea86979e0ed84df32f2b7117feba497f2
2015-11-16Add GTP hub initial code base.Neels Hofmeyr1-0/+1
First steps towards a new GTP hub. The aim is to mux GTP connections, so that multiple SGSN <--> GGSN links can pass through a single point. Background: allow having more than one SGSN, possibly in various remote locations. The recent addition of OAP to GSUP is related to the same background idea. (This is a collapsed patch of various changes that do not make sense to review in chronological order anymore, since a lot of it has thorougly transmorphed after it was first committed.) Sponsored-by: On-Waves ehf
2015-05-03filter: Move from DNAT to DFILTER categoryHolger Hans Peter Freyther1-0/+1
2015-01-02logging: Only compare the subscr addressHolger Hans Peter Freyther1-1/+2
Move the "logging filter imsi IMSI" into the BTS/NITB code to allow to set the gsm_subscriber and only compare it. This way we simply compare the subscriber address and don't have to care if the subscriber data is still valid.
2012-11-21sms: Use the DLSMS instead of the DSMS category throughout our codeHolger Hans Peter Freyther1-1/+0
2012-11-16Initial support of SMPP interface for MT-SMSHarald Welte1-0/+1
2012-06-16libgb: Remove dependency to openbsc/debug.hHarald Welte1-2/+0
2011-08-19src: port openBSC over libosmo-abisopenbsc/0.9.15Pablo Neira Ayuso1-4/+0
This is a big patch that ports openBSC over libosmo-abis. Sorry, the changes that are included here are all dependent of libosmo-abis, splitting them into smaller pieces would leave the repository in some intermediate state, which is not desired. The main changes are: - The directory libabis/ has been removed as it now lives in libosmo-abis. - new configuration file format for nanoBTS and HSL femto, we need to define the virtual e1_line and attach it to the OML link. - all the existing BTS drivers (nanoBTS, hsl femto, Nokia site, BS11 and rbs2000) now use the new libosmo-abis framework. - use r232 input driver available in libosmo-abis for bs11_config. - use ipa_msg_recv instead of old ipaccess_read_msg function. - delete definition of gsm_e1_subslot and input_signal_data. These structures now lives in libosmo-abis. Most of this patch are deletions of libabis/ which has been moved to libosmo-abis. This patch also modifies openBSC to use all the new definitions available in libosmocore and libosmo-abis. In order to do that, we have replaced the following: - DINP, DMI, DMIB and DMUX by their respective DL* correspondences. - SS_GLOBAL by SS_L_GLOBAL - SS_INPUT by SS_L_INPUT - S_GLOBAL_SHUTDOWN by S_L_GLOBAL_SHUTDOWN - SS_INPUT by SS_L_INPUT - S_INP_* by S_L_INP_* sub-signals - E1INP_NODE by L_E1INP_NODE vty node This patch has been tested with: - one nanoBTS - the HSL femto with the examples available under libosmo-abis - BS11 with both dahdi and misdn drivers.
2011-07-19libcommon: Add DCTRL logging destination for libctrl related messagesDaniel Willmann1-0/+1
2011-03-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso1-2/+2
libosmogsm is a new library that is distributed in the libosmocore. Now, openbsc depends on it. This patch gets openbsc with this change. This patch also rewrites all include path to the new osmocom/[gsm|core] Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2010-06-15nat: Register a debug region for the nat.Holger Hans Peter Freyther1-0/+1
2010-05-25Migrate VTY code to libosmovtyHarald Welte1-3/+0
2010-05-23debug: Make GPRS params non-const to avoid compiler warningHolger Hans Peter Freyther1-2/+2
Make log_set_nsvc_filter, log_set_bvc_filter take a non-const parameter as we are going to assign it to a non-const pointer.
2010-05-17[GPRS] BSSGP: Add VTY for configuration and inpectionHarald Welte1-0/+5
This also includes log filtering based on NSEI/BVCI tuple
2010-05-16VTY: Context-sensitive help for logging related commandsHarald Welte1-0/+1
2010-05-15[GPRS] NS: Allow filtering of log messages by NSVC / NSEIHarald Welte1-0/+9
2010-05-13[GPRS] Add debug sections for LLC and SNDCPHarald Welte1-0/+2
2010-05-11[gprs] Add new 'NS' and 'BSSGP' logging categoriesHarald Welte1-0/+2
2010-05-04Create new 'gprs-sgsn' branch on top of 'gprs-conf'Harald Welte1-0/+1
This branch contains the partial SGSN/GGSN implementation that was originally developed as part of the gprs branch.
2010-03-26move log/debug codebase to libosmocoreHarald Welte1-84/+5
The logging/debugging code is generic enough to move it into libosmocore while keeping OpenBSC specific definitions in openbsc itself. This commit uses the logging support present in libosmocore-0.1.2, you will have to update your library to this version.
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-1/+1
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2009-12-28vty: replace'logging level' numeric value with human readable stringHarald Welte (local)1-0/+2
2009-12-24[debug] Introduce DREF debug category for reference countingHarald Welte1-0/+1
2009-12-24Converrt the database later to use DEBUGP/LOGP instead of stderrHarald Welte1-0/+1
2009-12-22Import the new logging architectureHolger Hans Peter Freyther1-30/+99
This is the new logging architecture, including * support for multiuple logging targets like stderr and vty * log levels in addition to categories/subsystems * filtering based on imsi, i.e. only see events for one subscriber * dynamically change log level for each category for each vty
2009-12-17logging: introduce log levels at caller siteHarald Welte1-0/+11
This introduces a new LOGP() macro together with LOGL_* definition to support multiple log levels (severities) throughout the codebase. Please note that the actual logging system does not use them yet, in this patch we simply introduce the new macros at the caller site.
2009-12-17[handover] first functional handover implementationHarald Welte1-0/+2
With this commit, we can successfully hand over a channel from one cell to another cell. We implement asynchronous intra-BSC (but inter-BTS) handover. Changes: * introduce new DHO log category * extend rsl_chan_activate_lchan() with argument for HO reference * introduce actual minimal handover decision making in handover_decision.c * various fixes to bsc_handover_start() in handover_logic.c
2009-11-20[debug] Add a debug area for the MGCP code of On WavesHolger Hans Peter Freyther1-0/+2
2009-11-20[debug] Add a debug area for MSCHolger Hans Peter Freyther1-0/+1
2009-11-20[debug] Add a debug area for SCCPHolger Hans Peter Freyther1-0/+2
2009-10-21[debug] Use gcc attribute to enable printf checkingHolger Hans Peter Freyther1-1/+1
Inform the compiler that the same rules as printf apply to the debugp method. This will check if the arguments match the format string.
2009-08-20[debug] Make the hexdump parameter constHolger Hans Peter Freyther1-1/+1
This way it can be used from values coming TLVP_VAL.
2009-06-27add new DMEAS debug category for measurement reportingHarald Welte1-0/+1
disable it by default
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+39