arch: Remove FILE dump code from _up_dumponexit

since the kernel build can't access the userspace memory
inside other process directly

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-10-31 18:38:16 +08:00 committed by Masayuki Ishikawa
parent 1ba1f3f24b
commit 19e5ee6ce0
14 changed files with 0 additions and 349 deletions

View File

@ -65,9 +65,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -88,28 +85,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -64,9 +64,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -64,9 +64,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -66,9 +66,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -89,28 +86,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -58,9 +58,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -81,28 +78,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -58,9 +58,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -81,27 +78,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd, filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -65,9 +65,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -88,28 +85,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -64,9 +64,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -66,9 +66,6 @@
static void _up_dumponexit(struct tcb_s *tcb, void *arg)
{
struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
struct file_struct *filep;
#endif
int i;
int j;
@ -89,28 +86,6 @@ static void _up_dumponexit(struct tcb_s *tcb, void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -64,9 +64,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -64,9 +64,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -66,9 +66,6 @@
static void _xtensa_dumponexit(struct tcb_s *tcb, void *arg)
{
struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
struct file_struct *filep;
#endif
int i;
int j;
@ -89,28 +86,6 @@ static void _xtensa_dumponexit(struct tcb_s *tcb, void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -64,9 +64,6 @@
static void _z16_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -87,28 +84,6 @@ static void _z16_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif

View File

@ -66,9 +66,6 @@
static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
{
FAR struct filelist *filelist;
#ifdef CONFIG_FILE_STREAM
FAR struct file_struct *filep;
#endif
int i;
int j;
@ -89,28 +86,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg)
}
}
}
#ifdef CONFIG_FILE_STREAM
filep = tcb->group->tg_streamlist->sl_head;
for (; filep != NULL; filep = filep->fs_next)
{
if (filep->fs_fd >= 0)
{
#ifndef CONFIG_STDIO_DISABLE_BUFFERING
if (filep->fs_bufstart != NULL)
{
sinfo(" fd=%d nbytes=%d\n",
filep->fs_fd,
filep->fs_bufpos - filep->fs_bufstart);
}
else
#endif
{
sinfo(" fd=%d\n", filep->fs_fd);
}
}
}
#endif
}
#endif