LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 05-07-2018, 09:12 AM   #1
eindemwort
Member
 
Registered: Dec 2017
Location: Regensburg, DE
Distribution: Slackware -current
Posts: 31

Rep: Reputation: Disabled
A good advice on how to analyse code in the kernel


Hello,

Currently I have to analyse/understand how the deadline scheduler works.
I have read the documentation, and it is good and intereting, but unfortunatelly I need to have an understanding at a more technical level.
I began checking out the code and I have spotted two problems that at the moment are preventing me from making progress (fast) in understanding it:
  1. 1. There are some structures which I am not familiar with --> This is ok, but then I find out these structures might contain also structures which also contain structures which I don't know. This becomes time consuming only in understanding the structures and the relationships between them.
  2. 2. For some functions it is not difficult to understand what they do (what they do with the structures). But then the problem is in general I haven't been able to get an understanding of what the scheduler is doing (or how) with all this bunch of functions - The big picture.

So, I was wondering if somebody else already went through a similar situation and if so, is there any advice you could give me?

Cheers.
 
Old 05-07-2018, 09:27 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,231
Blog Entries: 12

Rep: Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701Reputation: 2701
Ask more specific questions about code clips and references to files which you are reading, and show the code clips and reference links.

Ask them in the Linux Kernel forum.

Share your impressions as well as your questions.

Review the documentation, if any, in advance of asking your question.

This is absolutely a very detailed topic. Reading the code is difficult, but also something which will help you to learn enough to ask some intelligent questions about it.

All I can say for myself is that I typically find that as I prepare enough organized thoughts to frame my questions about a large body of code, I discover answers for my questions.
 
Old 05-11-2018, 04:52 AM   #3
eindemwort
Member
 
Registered: Dec 2017
Location: Regensburg, DE
Distribution: Slackware -current
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thanks for your answer!
 
  


Reply

Tags
kernel, modules, scheduler


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
core dump, kernel crash in red hat linux 6.2 analyse chuikingman Linux - Kernel 1 01-06-2015 09:25 PM
[SOLVED] How do I analyse a kernel segfault sh[2026] error ? bugrake Linux - Server 3 12-21-2014 01:31 AM
LXer: Analyse code with SonarQube LXer Syndicated Linux News 0 06-11-2014 03:12 AM
[SOLVED] Is there any good book that teach how to design good code? xeon123 Programming 2 12-09-2011 01:13 PM
want help to analyse networking in kernel cybercop12us Programming 1 10-24-2001 04:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration