2013-09-24 19:46:49 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* apps/system/stackmonitor/stackmonitor.c
|
|
|
|
*
|
2021-06-10 13:17:16 +02:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2013-09-24 19:46:49 +02:00
|
|
|
*
|
2021-06-10 13:17:16 +02:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2013-09-24 19:46:49 +02:00
|
|
|
*
|
2021-06-10 13:17:16 +02:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2013-09-24 19:46:49 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <unistd.h>
|
2018-01-20 20:04:28 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <dirent.h>
|
2013-09-24 19:46:49 +02:00
|
|
|
#include <sched.h>
|
|
|
|
#include <syslog.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_SYSTEM_STACKMONITOR
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Pre-processor Definitions
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CONFIG_SYSTEM_STACKMONITOR_STACKSIZE
|
|
|
|
# define CONFIG_SYSTEM_STACKMONITOR_STACKSIZE 2048
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CONFIG_SYSTEM_STACKMONITOR_PRIORITY
|
|
|
|
# define CONFIG_SYSTEM_STACKMONITOR_PRIORITY 50
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef CONFIG_SYSTEM_STACKMONITOR_INTERVAL
|
|
|
|
# define CONFIG_SYSTEM_STACKMONITOR_INTERVAL 2
|
|
|
|
#endif
|
|
|
|
|
2018-01-20 20:04:28 +01:00
|
|
|
#ifndef CONFIG_SYSTEM_STACKMONITOR_MOUNTPOINT
|
|
|
|
# define CONFIG_SYSTEM_STACKMONITOR_MOUNTPOINT "/proc"
|
|
|
|
#endif
|
|
|
|
|
2013-09-24 19:46:49 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Private Types
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
struct stkmon_state_s
|
|
|
|
{
|
|
|
|
volatile bool started;
|
|
|
|
volatile bool stop;
|
|
|
|
pid_t pid;
|
2018-01-20 20:04:28 +01:00
|
|
|
char line[80];
|
2013-09-24 19:46:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Private Data
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
static struct stkmon_state_s g_stackmonitor;
|
2018-01-20 20:04:28 +01:00
|
|
|
#if CONFIG_TASK_NAME_SIZE > 0
|
|
|
|
static const char g_name[] = "Name:";
|
|
|
|
#endif
|
|
|
|
static const char g_stacksize[] = "StackSize:";
|
|
|
|
static const char g_stackused[] = "StackUsed:";
|
2013-09-24 19:46:49 +02:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Private Functions
|
|
|
|
****************************************************************************/
|
|
|
|
|
2013-09-24 20:13:53 +02:00
|
|
|
/****************************************************************************
|
2018-03-13 14:46:52 +01:00
|
|
|
* Name: stkmon_isolate_value
|
2013-09-24 20:13:53 +02:00
|
|
|
****************************************************************************/
|
|
|
|
|
2018-03-13 14:46:52 +01:00
|
|
|
static FAR char *stkmon_isolate_value(FAR char *line)
|
2013-09-24 20:13:53 +02:00
|
|
|
{
|
2018-01-20 20:04:28 +01:00
|
|
|
FAR char *ptr;
|
|
|
|
|
|
|
|
while (isblank(*line) && *line != '\0')
|
|
|
|
{
|
|
|
|
line++;
|
|
|
|
}
|
|
|
|
|
|
|
|
ptr = line;
|
|
|
|
while (*ptr != '\n' && *ptr != '\r' && *ptr != '\0')
|
|
|
|
{
|
|
|
|
ptr++;
|
|
|
|
}
|
|
|
|
|
|
|
|
*ptr = '\0';
|
|
|
|
return line;
|
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Name: stkmon_process_directory
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
static int stkmon_process_directory(FAR struct dirent *entryp)
|
|
|
|
{
|
|
|
|
FAR char *filepath;
|
|
|
|
FAR char *endptr;
|
|
|
|
FAR const char *tmpstr;
|
|
|
|
FILE *stream;
|
|
|
|
unsigned long stack_size;
|
|
|
|
unsigned long stack_used;
|
|
|
|
int errcode;
|
|
|
|
int len;
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
#if CONFIG_TASK_NAME_SIZE > 0
|
|
|
|
FAR char *name = NULL;
|
|
|
|
|
|
|
|
/* Read the task status to get the task name */
|
|
|
|
|
|
|
|
filepath = NULL;
|
2021-06-10 18:40:35 +02:00
|
|
|
ret = asprintf(&filepath,
|
|
|
|
CONFIG_SYSTEM_STACKMONITOR_MOUNTPOINT "/%s/status",
|
2018-01-20 20:04:28 +01:00
|
|
|
entryp->d_name);
|
|
|
|
if (ret < 0 || filepath == NULL)
|
|
|
|
{
|
|
|
|
errcode = errno;
|
2021-06-10 18:40:35 +02:00
|
|
|
fprintf(stderr,
|
|
|
|
"Stack Monitor: Failed to create path to status file: %d\n",
|
2018-01-20 20:04:28 +01:00
|
|
|
errcode);
|
|
|
|
return -errcode;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Open the status file */
|
|
|
|
|
|
|
|
stream = fopen(filepath, "r");
|
|
|
|
if (stream == NULL)
|
|
|
|
{
|
|
|
|
ret = -errno;
|
|
|
|
fprintf(stderr, "Stack Monitor: Failed to open %s: %d\n",
|
|
|
|
filepath, ret);
|
|
|
|
goto errout_with_filepath;
|
|
|
|
}
|
|
|
|
|
|
|
|
while (fgets(g_stackmonitor.line, 80, stream) != NULL)
|
|
|
|
{
|
|
|
|
g_stackmonitor.line[79] = '\n';
|
|
|
|
len = strlen(g_name);
|
|
|
|
if (strncmp(g_stackmonitor.line, g_name, len) == 0)
|
|
|
|
{
|
2018-03-13 14:46:52 +01:00
|
|
|
tmpstr = stkmon_isolate_value(&g_stackmonitor.line[len]);
|
2018-01-20 20:04:28 +01:00
|
|
|
if (*tmpstr == '\0')
|
|
|
|
{
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto errout_with_stream;
|
|
|
|
}
|
|
|
|
|
|
|
|
name = strdup(tmpstr);
|
|
|
|
if (name == NULL)
|
|
|
|
{
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto errout_with_stream;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
free(filepath);
|
|
|
|
fclose(stream);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Read stack information */
|
|
|
|
|
|
|
|
stack_size = 0;
|
|
|
|
stack_used = 0;
|
|
|
|
filepath = NULL;
|
|
|
|
|
2021-06-10 18:40:35 +02:00
|
|
|
ret = asprintf(&filepath,
|
|
|
|
CONFIG_SYSTEM_STACKMONITOR_MOUNTPOINT "/%s/stack",
|
2018-01-20 20:04:28 +01:00
|
|
|
entryp->d_name);
|
|
|
|
if (ret < 0 || filepath == NULL)
|
|
|
|
{
|
|
|
|
errcode = errno;
|
2021-06-10 18:40:35 +02:00
|
|
|
fprintf(stderr,
|
|
|
|
"Stack Monitor: Failed to create path to stack file: %d\n",
|
2018-01-20 20:04:28 +01:00
|
|
|
errcode);
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto errout_with_name;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Open the stack file */
|
|
|
|
|
|
|
|
stream = fopen(filepath, "r");
|
|
|
|
if (stream == NULL)
|
|
|
|
{
|
|
|
|
ret = -errno;
|
|
|
|
fprintf(stderr, "Stack Monitor: Failed to open %s: %d\n",
|
|
|
|
filepath, ret);
|
|
|
|
goto errout_with_filepath;
|
|
|
|
}
|
|
|
|
|
|
|
|
while (fgets(g_stackmonitor.line, 80, stream) != NULL)
|
|
|
|
{
|
|
|
|
g_stackmonitor.line[79] = '\n';
|
|
|
|
len = strlen(g_stacksize);
|
|
|
|
if (strncmp(g_stackmonitor.line, g_stacksize, len) == 0)
|
|
|
|
{
|
2018-03-13 14:46:52 +01:00
|
|
|
tmpstr = stkmon_isolate_value(&g_stackmonitor.line[len]);
|
|
|
|
if (*tmpstr == '\0')
|
2018-01-20 20:04:28 +01:00
|
|
|
{
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto errout_with_stream;
|
|
|
|
}
|
|
|
|
|
|
|
|
stack_size = (uint32_t)strtoul(tmpstr, &endptr, 10);
|
|
|
|
if (*endptr != '\0')
|
|
|
|
{
|
2021-06-10 18:40:35 +02:00
|
|
|
fprintf(stderr,
|
|
|
|
"Stack Monitor: Bad numeric value %s\n", tmpstr);
|
2018-01-20 20:04:28 +01:00
|
|
|
ret = -EINVAL;
|
|
|
|
goto errout_with_stream;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
len = strlen(g_stackused);
|
|
|
|
if (strncmp(g_stackmonitor.line, g_stackused, len) == 0)
|
|
|
|
{
|
2018-03-13 14:46:52 +01:00
|
|
|
tmpstr = stkmon_isolate_value(&g_stackmonitor.line[len]);
|
|
|
|
if (*tmpstr == '\0')
|
2018-01-20 20:04:28 +01:00
|
|
|
{
|
|
|
|
ret = -EINVAL;
|
|
|
|
goto errout_with_stream;
|
|
|
|
}
|
|
|
|
|
|
|
|
stack_used = (uint32_t)strtoul(tmpstr, &endptr, 10);
|
|
|
|
if (*endptr != '\0')
|
|
|
|
{
|
2021-06-10 18:40:35 +02:00
|
|
|
fprintf(stderr,
|
|
|
|
"Stack Monitor: Bad numeric value %s\n", tmpstr);
|
2018-01-20 20:04:28 +01:00
|
|
|
ret = -EINVAL;
|
|
|
|
goto errout_with_stream;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Finally, output the stack info that we gleaned from the procfs */
|
|
|
|
|
2014-10-22 20:05:39 +02:00
|
|
|
#if CONFIG_TASK_NAME_SIZE > 0
|
2021-06-10 18:40:35 +02:00
|
|
|
printf("%5s %6lu %6lu %s\n",
|
|
|
|
entryp->d_name, stack_size, stack_used, name);
|
2013-09-24 20:13:53 +02:00
|
|
|
#else
|
2021-06-10 18:40:35 +02:00
|
|
|
printf("%5s %6lu %6lu\n",
|
|
|
|
entryp->d_name, stack_size, stack_used);
|
2013-09-24 20:13:53 +02:00
|
|
|
#endif
|
2018-01-20 20:04:28 +01:00
|
|
|
|
|
|
|
ret = OK;
|
|
|
|
|
|
|
|
errout_with_stream:
|
|
|
|
fclose(stream);
|
|
|
|
|
|
|
|
errout_with_filepath:
|
|
|
|
free(filepath);
|
|
|
|
|
|
|
|
errout_with_name:
|
|
|
|
#if CONFIG_TASK_NAME_SIZE > 0
|
|
|
|
if (name != NULL)
|
|
|
|
{
|
|
|
|
free(name);
|
|
|
|
}
|
|
|
|
#endif
|
2021-06-10 18:40:35 +02:00
|
|
|
|
2018-01-20 20:04:28 +01:00
|
|
|
return ret;
|
2013-09-24 20:13:53 +02:00
|
|
|
}
|
|
|
|
|
2018-01-20 20:04:28 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Name: stackmonitor_check_name
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
static bool stackmonitor_check_name(FAR char *name)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
/* Check each character in the name */
|
|
|
|
|
|
|
|
for (i = 0; i < NAME_MAX && name[i] != '\0'; i++)
|
|
|
|
{
|
|
|
|
if (!isdigit(name[i]))
|
|
|
|
{
|
|
|
|
/* Name contains something other than a decimal numeric character */
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Name: stackmonitor_daemon
|
|
|
|
****************************************************************************/
|
|
|
|
|
2013-09-24 19:46:49 +02:00
|
|
|
static int stackmonitor_daemon(int argc, char **argv)
|
|
|
|
{
|
2018-01-20 20:04:28 +01:00
|
|
|
DIR *dirp;
|
|
|
|
int exitcode = EXIT_SUCCESS;
|
|
|
|
int errcount = 0;
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
printf("Stack Monitor: Running: %d\n", g_stackmonitor.pid);
|
2013-09-24 19:46:49 +02:00
|
|
|
|
|
|
|
/* Loop until we detect that there is a request to stop. */
|
|
|
|
|
|
|
|
while (!g_stackmonitor.stop)
|
|
|
|
{
|
2018-01-20 20:04:28 +01:00
|
|
|
/* Wait for the next sample interval */
|
|
|
|
|
2013-09-24 19:46:49 +02:00
|
|
|
sleep(CONFIG_SYSTEM_STACKMONITOR_INTERVAL);
|
2018-01-20 20:04:28 +01:00
|
|
|
|
|
|
|
/* Open the top-level procfs directory */
|
|
|
|
|
|
|
|
dirp = opendir(CONFIG_SYSTEM_STACKMONITOR_MOUNTPOINT);
|
|
|
|
if (dirp == NULL)
|
|
|
|
{
|
|
|
|
/* Failed to open the directory */
|
|
|
|
|
|
|
|
fprintf(stderr, "Stack Monitor: Failed to open directory: %s\n",
|
|
|
|
CONFIG_SYSTEM_STACKMONITOR_MOUNTPOINT);
|
|
|
|
|
|
|
|
if (++errcount > 100)
|
|
|
|
{
|
2021-06-10 18:40:35 +02:00
|
|
|
fprintf(stderr,
|
|
|
|
"Stack Monitor: Too many errors ... exiting\n");
|
2018-01-20 20:04:28 +01:00
|
|
|
exitcode = EXIT_FAILURE;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Output the header */
|
|
|
|
|
2014-10-22 20:05:39 +02:00
|
|
|
#if CONFIG_TASK_NAME_SIZE > 0
|
2018-01-20 20:04:28 +01:00
|
|
|
printf("%-5s %-6s %-6s %s\n", "PID", "SIZE", "USED", "THREAD NAME");
|
2013-09-24 20:13:53 +02:00
|
|
|
#else
|
2018-01-20 20:04:28 +01:00
|
|
|
printf("%-5s %-6s %-6s\n", "PID", "SIZE", "USED");
|
2013-09-24 20:13:53 +02:00
|
|
|
#endif
|
2018-01-20 20:04:28 +01:00
|
|
|
|
|
|
|
/* Read each directory entry */
|
|
|
|
|
|
|
|
for (; ; )
|
|
|
|
{
|
|
|
|
FAR struct dirent *entryp = readdir(dirp);
|
|
|
|
if (entryp == NULL)
|
|
|
|
{
|
|
|
|
/* Finished with this directory */
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Task/thread entries in the /proc directory will all be (1)
|
|
|
|
* directories with (2) all numeric names.
|
|
|
|
*/
|
|
|
|
|
2018-01-20 20:37:38 +01:00
|
|
|
if (DIRENT_ISDIRECTORY(entryp->d_type) &&
|
|
|
|
stackmonitor_check_name(entryp->d_name))
|
2018-01-20 20:04:28 +01:00
|
|
|
{
|
2018-01-20 20:37:38 +01:00
|
|
|
/* Looks good -- process the directory */
|
2018-01-20 20:04:28 +01:00
|
|
|
|
2018-01-20 20:37:38 +01:00
|
|
|
ret = stkmon_process_directory(entryp);
|
|
|
|
if (ret < 0)
|
2018-01-20 20:04:28 +01:00
|
|
|
{
|
2018-01-20 20:37:38 +01:00
|
|
|
/* Failed to process the thread directory */
|
|
|
|
|
2021-06-10 18:40:35 +02:00
|
|
|
fprintf(stderr, "Stack Monitor: "
|
|
|
|
"Failed to process sub-directory: %s\n",
|
2018-01-20 20:37:38 +01:00
|
|
|
entryp->d_name);
|
|
|
|
|
|
|
|
if (++errcount > 100)
|
|
|
|
{
|
2021-06-10 18:40:35 +02:00
|
|
|
fprintf(stderr,
|
|
|
|
"Stack Monitor: Too many errors ... exiting\n");
|
2018-01-20 20:37:38 +01:00
|
|
|
exitcode = EXIT_FAILURE;
|
|
|
|
break;
|
|
|
|
}
|
2018-01-20 20:04:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
closedir(dirp);
|
2013-09-24 19:46:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Stopped */
|
|
|
|
|
|
|
|
g_stackmonitor.stop = false;
|
|
|
|
g_stackmonitor.started = false;
|
2018-01-20 20:04:28 +01:00
|
|
|
printf("Stack Monitor: Stopped: %d\n", g_stackmonitor.pid);
|
2013-09-24 19:46:49 +02:00
|
|
|
|
2018-01-20 20:04:28 +01:00
|
|
|
return exitcode;
|
2013-09-24 19:46:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Functions
|
|
|
|
****************************************************************************/
|
|
|
|
|
2019-10-06 14:14:39 +02:00
|
|
|
int main(int argc, char **argv)
|
2013-09-24 19:46:49 +02:00
|
|
|
{
|
|
|
|
/* Has the monitor already started? */
|
|
|
|
|
|
|
|
sched_lock();
|
|
|
|
if (!g_stackmonitor.started)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
/* No.. start it now */
|
2014-04-14 00:24:28 +02:00
|
|
|
|
2013-09-24 19:46:49 +02:00
|
|
|
/* Then start the stack monitoring daemon */
|
|
|
|
|
|
|
|
g_stackmonitor.started = true;
|
|
|
|
g_stackmonitor.stop = false;
|
|
|
|
|
2014-09-01 21:21:15 +02:00
|
|
|
ret = task_create("Stack Monitor", CONFIG_SYSTEM_STACKMONITOR_PRIORITY,
|
2013-09-24 19:46:49 +02:00
|
|
|
CONFIG_SYSTEM_STACKMONITOR_STACKSIZE,
|
2022-10-15 19:55:16 +02:00
|
|
|
stackmonitor_daemon, NULL);
|
2013-09-24 19:46:49 +02:00
|
|
|
if (ret < 0)
|
|
|
|
{
|
|
|
|
int errcode = errno;
|
2021-06-10 18:40:35 +02:00
|
|
|
printf("Stack Monitor ERROR: "
|
|
|
|
"Failed to start the stack monitor: %d\n",
|
2013-09-24 19:46:49 +02:00
|
|
|
errcode);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
g_stackmonitor.pid = ret;
|
2018-01-20 20:04:28 +01:00
|
|
|
printf("Stack Monitor: Started: %d\n", g_stackmonitor.pid);
|
2013-09-24 19:46:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sched_unlock();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
sched_unlock();
|
2018-01-20 20:04:28 +01:00
|
|
|
printf("Stack Monitor: %s: %d\n",
|
2013-09-24 19:46:49 +02:00
|
|
|
g_stackmonitor.stop ? "Stopping" : "Running", g_stackmonitor.pid);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-09-03 17:29:56 +02:00
|
|
|
int stackmonitor_stop_main(int argc, char **argv)
|
2013-09-24 19:46:49 +02:00
|
|
|
{
|
|
|
|
/* Has the monitor already started? */
|
|
|
|
|
|
|
|
if (g_stackmonitor.started)
|
|
|
|
{
|
|
|
|
/* Stop the stack monitor. The next time the monitor wakes up,
|
2017-05-11 21:40:03 +02:00
|
|
|
* it will see the stop indication and will exist.
|
2013-09-24 19:46:49 +02:00
|
|
|
*/
|
|
|
|
|
2018-01-20 20:04:28 +01:00
|
|
|
printf("Stack Monitor: Stopping: %d\n", g_stackmonitor.pid);
|
2013-09-24 19:46:49 +02:00
|
|
|
g_stackmonitor.stop = true;
|
|
|
|
}
|
|
|
|
|
2018-01-20 20:04:28 +01:00
|
|
|
printf("Stack Monitor: Stopped: %d\n", g_stackmonitor.pid);
|
2013-09-24 19:46:49 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_SYSTEM_STACKMONITOR */
|