LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2017, 11:28 PM   #1
Kumaravadivel
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Rep: Reputation: Disabled
Post Creation of Circular Buffer in Kernel


I want to create my own log buffer (circular buffer) .. Is there is any suggestions?
 
Old 11-02-2017, 01:27 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Hi Kumaravadivel and welcome to LQ.

I feel you need to add some more description as to what you're trying to do, what you want the result to be, and how you feel you may possibly proceed with working on this.

You wish to create a log, and you say in the kernel. What do you wish to log? Your own information, or information you feel already comes from other sources in the kernel?

You say a circular buffer. How large, how large would each record be? What format would each record be? What would they contain? Do you wish to make the size or contents of the logs be configurable?

How would you proceed: Do you expect to write code to accomplish this? Were you hoping to find an existing capability that you could re-use?

Can you describe what you wish to do better? Can you cite or illustrate an example of what you wish to accomplish? As well as describe what you felt you might do, scripting, coding, or other, to accomplish what you intend to get as a result. And please describe your thinking which has led you to deciding that you wished to create, obtain, or use a kernel circular log buffer.
 
2 members found this post helpful.
Old 11-08-2017, 12:21 AM   #3
Kumaravadivel
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I just try to create my own circular buffer in Kernel with the size of 16 KB. By default it should be initialized by zeros. I need to store the characters , and every time i entered it shows the full buffer , it need to analyze the events by statistic variables.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Implement circular buffer in file kauuttt Programming 15 12-29-2015 08:47 AM
Multiple frame buffer creation problem nightwatchman Linux - General 1 11-20-2008 03:38 PM
Multiple frame buffer creation problem nightwatchman Linux - Hardware 0 11-20-2008 10:19 AM
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-25-2006 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration