Manoj Rao bio photo

Manoj Rao

Your Average Common Man

Email Twitter Github

Over the last couple of weeks I have found myself wanting to find certain things out which were hard to answer quickly without the deep insight from kernel level. The problem was that the issues were themselves not dire enough to spend the extra time cooking up the bpftrace or my own BCC program. So I got around by using vanilla perf or ftrace or flamegraphs, but soon such small niggles added up. Now I am at a point where I dearly miss programming in kernel where the inertia to doing such things is minimal and access to info from scheduler is readily available.

I’d like to quickly answer things like who preempted a pid out and how many times in this period. “What are each of the threads spawned by a pid doing right now?”

So I think it is time to go back to writing a few BCC programs in C++ to get information at this level.


My Podcast!

If you like topics such as this then please consider subscribing to my podcast. I talk to some of the stalwarts in tech and ask them what their favorite productivity hacks are:

Available on iTunes Podcast

Visit Void Star Podcast’s page on iTunes Podcast Portal. Please Click ‘Subscribe’, leave a comment.

Get it iTunes

Available on Google Play Music

Visit Void Star Podcast’s page on Google Play Music. Please Click ‘Subscribe’ and leave a comment.

Listen on Google Play Music
Available on Stitcher

Visit Void Star Podcast’s page on Sticher. Please Click ‘Subscribe’ and leave a comment.

Listen to Stitcher

Your app not listed here? Not an issue..

You should be able to search for ‘VoidStar Podcast’ on your favorite app. Most apps use one of the above sources for listing podcasts. This was tested on Podcast Addict (where you can also specify the search engine) and RatPoison on Android.