lkml.org 
[lkml]   [2011]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectHow to export information larger than PROC_BLOCK_SIZE via /proc file system?
From
Hi,

I am tracing some data inside the kernel, and I plan to export the
tracing data through /proc file system. I created a file under /proc
file system, and I use cat to display the tracing data. However, every
time there is only 3072 bytes data displayed, which is the size
defined by PROC_BLOCK_SIZE. And I wonder that how to export
information more than that limit? Judging from the function
fs/proc/generic.c/proc_file_read(), if the size returned by my
read_proc function is large than a PAGE_SIZE, then I will get a
KERN_ERR message which says "proc_file_read: Apparent buffer
overflow!". Any help would be appreciated!

Regards
Jidong


\
 
 \ /
  Last update: 2011-04-27 02:57    [W:0.037 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site