forked from Imagelibrary/rtems
2008-12-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libmisc/serdbg/termios_printk.c, libmisc/serdbg/termios_printk.h: Fixed incompatible return value. * libmisc/cpuuse/cpuusagereport.c: Changed output format. * libmisc/Makefile.am, libmisc/monitor/mon-editor.c: New file. * libmisc/capture/capture-cli.c, libmisc/monitor/mon-command.c, libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c, libmisc/monitor/mon-prmisc.c, libmisc/monitor/mon-symbols.c, libmisc/monitor/monitor.h, libmisc/shell/cat_file.c, libmisc/shell/cmds.c, libmisc/shell/internal.h, libmisc/shell/main_help.c, libmisc/shell/shell.c, libmisc/shell/shell.h, libmisc/shell/shell_cmdset.c, libmisc/shell/shell_getchar.c, libmisc/shell/str2int.c: Various global data is now read only. Added 'const' qualifier to many pointer parameters. It is no longer possible to remove monitor commands. Moved monitor line editor into a separate file to avoid unnecessary dependencies.
This commit is contained in:
@@ -65,7 +65,7 @@ static const char* open_usage = "usage: copen [-i] size\n";
|
||||
static void
|
||||
rtems_capture_cli_open (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
uint32_t size = 0;
|
||||
@@ -136,7 +136,7 @@ rtems_capture_cli_open (int argc,
|
||||
static void
|
||||
rtems_capture_cli_close (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -164,7 +164,7 @@ rtems_capture_cli_close (int argc,
|
||||
static void
|
||||
rtems_capture_cli_enable (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -192,7 +192,7 @@ rtems_capture_cli_enable (int argc,
|
||||
static void
|
||||
rtems_capture_cli_disable (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -220,7 +220,7 @@ rtems_capture_cli_disable (int argc,
|
||||
static void
|
||||
rtems_capture_cli_task_list (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_task_priority ceiling = rtems_capture_watch_get_ceiling ();
|
||||
@@ -459,7 +459,7 @@ rtems_capture_cli_task_load_thread (rtems_task_argument arg)
|
||||
static void
|
||||
rtems_capture_cli_task_load (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -532,7 +532,7 @@ rtems_capture_cli_task_load (int argc,
|
||||
static void
|
||||
rtems_capture_cli_watch_list (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_capture_control_t* control = rtems_capture_get_control_list ();
|
||||
@@ -684,7 +684,7 @@ static char const * watch_add_usage = "usage: cwadd [task name] [id]\n";
|
||||
static void
|
||||
rtems_capture_cli_watch_add (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -747,7 +747,7 @@ static char const * watch_del_usage = "usage: cwdel [task name] [id]\n";
|
||||
static void
|
||||
rtems_capture_cli_watch_del (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -809,7 +809,7 @@ static char const * watch_control_usage = "usage: cwctl [task name] [id] on/off\
|
||||
static void
|
||||
rtems_capture_cli_watch_control (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -876,7 +876,7 @@ static char const * watch_global_usage = "usage: cwglob on/off\n";
|
||||
static void
|
||||
rtems_capture_cli_watch_global (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -930,7 +930,7 @@ static char const * watch_ceiling_usage = "usage: cwceil priority\n";
|
||||
static void
|
||||
rtems_capture_cli_watch_ceiling (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -981,7 +981,7 @@ static char const * watch_floor_usage = "usage: cwfloor priority\n";
|
||||
static void
|
||||
rtems_capture_cli_watch_floor (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -1259,7 +1259,7 @@ rtems_capture_cli_trigger_worker (int set, int argc, char** argv)
|
||||
static void
|
||||
rtems_capture_cli_trigger_set (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_capture_cli_trigger_worker (1, argc, argv);
|
||||
@@ -1277,7 +1277,7 @@ rtems_capture_cli_trigger_set (int argc,
|
||||
static void
|
||||
rtems_capture_cli_trigger_clear (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_capture_cli_trigger_worker (0, argc, argv);
|
||||
@@ -1295,7 +1295,7 @@ rtems_capture_cli_trigger_clear (int argc,
|
||||
static void
|
||||
rtems_capture_cli_trace_records (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
@@ -1426,7 +1426,7 @@ rtems_capture_cli_trace_records (int argc,
|
||||
static void
|
||||
rtems_capture_cli_flush (int argc,
|
||||
char** argv,
|
||||
rtems_monitor_command_arg_t* command_arg,
|
||||
const rtems_monitor_command_arg_t* command_arg,
|
||||
bool verbose)
|
||||
{
|
||||
rtems_status_code sc;
|
||||
|
||||
Reference in New Issue
Block a user