From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Challenge: Using tools with a network driver

Challenge: Using tools with a network driver - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Challenge: Using tools with a network driver

(upbeat electronic music) - [Instructor] All right. We've got some challenges having to do with your network driver stuff. Number one, if you have a Wi-Fi network interface, determine its driver with ethtool. If you have some other kind of network interface, then try that one. Number two, using ifconfig, show how many packets one of your network interfaces has received. And then number three, trace the functions in your network driver in, you know, using the /sys/kernel/debug/tracing directory. So you start to trace and then after starting tracing, use a command like grep intr, assuming you're interrupt function has that in the name. So double check that. So you're going to grep that in trace. Pipe it in wc myself to count how many times the function was called, then sleep for 10 seconds and then grep and count it again. And then the difference between those two counts is how many times your function was called in…

Contents