- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
72 lines
4.0 KiB
C
72 lines
4.0 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
|
|
/*!
|
|
* \brief: Include file defining telnet commands related to this linux process
|
|
*/
|
|
|
|
#ifndef __TELNETSRV_PROCCMD__H__
|
|
#define __TELNETSRV_PROCCMD__H__
|
|
|
|
#include <dlfcn.h>
|
|
#include "telnetsrv.h"
|
|
|
|
|
|
#ifdef TELNETSRV_PROCCMD_MAIN
|
|
|
|
|
|
extern int proccmd_show(char *buf, int debug, telnet_printfunc_t prnt);
|
|
extern int proccmd_thread(char *buf, int debug, telnet_printfunc_t prnt);
|
|
extern int proccmd_exit(char *buf, int debug, telnet_printfunc_t prnt);
|
|
extern int proccmd_restart(char *buf, int debug, telnet_printfunc_t prnt);
|
|
extern int proccmd_log(char *buf, int debug, telnet_printfunc_t prnt);
|
|
extern int proccmd_websrv_getdata(char *cmdbuff, int debug, void *data, telnet_printfunc_t prnt);
|
|
telnetshell_vardef_t proc_vardef[] = {{"", 0, 0, NULL}};
|
|
#define PROCCMD_LOG_HELP_STRING \
|
|
" log sub commands: \n\
|
|
show: display current log configuration \n\
|
|
online, noonline: enable or disable console logs \n\
|
|
enable, disable id1-id2: enable or disable logs for components index id1 to id2 \n\
|
|
file, nofile id1-id2: enable or disable redirecting logs to file for components index id1 to id2 \n\
|
|
logfile name depends on component name and is printed in the show command \n\
|
|
level_<level> id1-id2: set log level to <level> for components index id1 to id2 \n\
|
|
use the show command to get the authorized values for \n\
|
|
<level> and the list of component indexes that can be used for id1 and id2 \n\
|
|
print_<opt> <0|1> disable or enable the \"opt\" log option, use the show command to get \
|
|
the available options\n\
|
|
dump_<mod> debug_<mod > disable or enable the debug file generation or debug code\
|
|
for \"mod\" module. use the show command to get the available modules\n"
|
|
|
|
#define PROCCMD_THREAD_HELP_STRING \
|
|
" thread sub commands: \n\
|
|
<thread id> aff <core> : set affinity of thread <thread id> to core <core> \n\
|
|
<thread id> prio <prio> : set scheduling parameters for thread <thread id> \n\
|
|
-100 < prio < 0: linux scheduling policy set to FIFO, priority -prio, \n\
|
|
-200 < prio < -100: linux scheduling policy set to RR, priority -(prio+100), \n\
|
|
0 <= prio < 40: linux scheduling policy set to NORMAL, nice value prio-20 \n\
|
|
40 <= prio < 80: linux scheduling policy set to BATCH, nice value prio-60 \n\
|
|
prio >=80: linux scheduling policy set to IDLE \n\
|
|
use \"softmodem show thread\" to get <thread id> \n"
|
|
|
|
telnetshell_cmddef_t proc_cmdarray[] = {
|
|
{"show", "loglvl|thread|config", proccmd_show, {(webfunc_t)proccmd_websrv_getdata}, TELNETSRV_CMDFLAG_TELNETONLY, NULL},
|
|
{"log", "(enter help for details)", proccmd_log, {NULL}, TELNETSRV_CMDFLAG_TELNETONLY, NULL},
|
|
{"show loglvl", "", proccmd_log, {(webfunc_t)proccmd_websrv_getdata}, TELNETSRV_CMDFLAG_WEBSRVONLY | TELNETSRV_CMDFLAG_GETWEBTBLDATA, NULL},
|
|
{"show logopt", "", proccmd_log, {(webfunc_t)proccmd_websrv_getdata}, TELNETSRV_CMDFLAG_WEBSRVONLY | TELNETSRV_CMDFLAG_GETWEBTBLDATA, NULL},
|
|
{"show dbgopt", "", proccmd_log, {(webfunc_t)proccmd_websrv_getdata}, TELNETSRV_CMDFLAG_WEBSRVONLY | TELNETSRV_CMDFLAG_GETWEBTBLDATA, NULL},
|
|
{"show config", "", proccmd_show, {(webfunc_t)proccmd_show}, TELNETSRV_CMDFLAG_WEBSRVONLY, NULL},
|
|
{"show thread", "", proccmd_thread, {(webfunc_t)proccmd_show}, TELNETSRV_CMDFLAG_WEBSRVONLY | TELNETSRV_CMDFLAG_AUTOUPDATE, NULL},
|
|
{"thread", "(enter help for details)", proccmd_thread, {NULL}, TELNETSRV_CMDFLAG_TELNETONLY, NULL},
|
|
{"show threadsched", "", proccmd_show, {(webfunc_t)proccmd_websrv_getdata}, TELNETSRV_CMDFLAG_WEBSRVONLY | TELNETSRV_CMDFLAG_GETWEBTBLDATA, NULL},
|
|
{"exit", "", proccmd_exit, {NULL}, TELNETSRV_CMDFLAG_CONFEXEC, NULL},
|
|
{"restart", "", proccmd_restart, {NULL}, TELNETSRV_CMDFLAG_CONFEXEC, NULL},
|
|
{"", "", NULL},
|
|
};
|
|
#else
|
|
extern void add_proccmd_cmds(void);
|
|
#endif /* TELNETSRV_PROCCMD_MAIN */
|
|
|
|
#endif
|