Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey! How can I intercept and analyze any kind of (IDE) hard disk communication in linux? And I don't mean those little disk monitors that only show you reads/writes. I mean any kind of traffic... disk reads, writes, commands for disk spinup and spindown, HDD head seek and parking commands, anything and everything!
Hey! How can I intercept and analyze any kind of (IDE) hard disk communication in linux? And I don't mean those little disk monitors that only show you reads/writes. I mean any kind of traffic... disk reads, writes, commands for disk spinup and spindown, HDD head seek and parking commands, anything and everything!
Since you're using Linux, you can always look at the source code for the IDE drivers, and get everything you need from it...
I assume this will require me to recompile the kernel with the new IDE drivers. What methods would you recommend to be added to the driver in order to be able to monitor the traffic from userspace?
I assume this will require me to recompile the kernel with the new IDE drivers. What methods would you recommend to be added to the driver in order to be able to monitor the traffic from userspace?
Maybe, but as a first step, I'd look at the code. There could very well be hooks in place right now, to allow user-space monitoring. You'd just have to write a program to look at them.
Hmm, kernel hooks... thanks for pointing that out to me, I was originally leaning towards printk() function. Well basically I'm trying to do something I've never done before (first time kernel hacking), and I'm definitely expected to run into trouble. I took a brief look at the drivers/ide, and drivers/ata directories of the kernel source tree, and there are indeed a lot of files in here to check out. Any suggestions which could be of interest? I'm guessing all those that begin on "ide-" and are potential candidates.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.