KVM guest reports errors – How to troubleshoot or track it ? systemtap ?

I have seen reports saying that – under some scenarios, the KVM guest system reports I/O errors in its ‘dmesg’ against virtio block devices and also, some times it cause the filesystems inside the guest to go ‘READONLY’ mode. Tracking such issues are a bit difficult and its a pain. I believe we should make …

Read more

Red Black Tree Introduction – part 1

Red Black Tree algorithm is famous in computer world.. Obviously smartly designed software adopt it.. It happened with the linux kernel as well.. so a study on it. I will be continuing the rest in other article .. Here is an intro on it. [pdf id=5400]

interpret-indirect-addressing-mode-example-in-assembly

Today one of my friend asked me to interpret below assembly instruction for him, so this post 🙂 The instruction  have below format, It is one of indirect addressing modes, so this should be read in such a way that, What that basically means is that IR * Width + offset

Explore “Qemu Tracing ” ..

Qemu provides a new “tracing” mechanism which can be used in conjuction with several backends.. Especially useful to make use of it via “system Tap” which shipped with most of the distros..   The trace points are really useful when debugging or when doing performance analysis. The trace events can be enabled/disabled at run time.. …

Read more

How to list options that are currently compiled into your kernel ?

Yes, there is an easy way to check list of options currently compiled in your kernel. It is as simple as that visting “/boot/config-” file. That said, have a look at below snip in my system. [root@humbles-lap ~]# cat /boot/config-2.6.35. config-2.6.35.14-97.fc14.x86_64 config-2.6.35.6-48.fc14.x86_64 config-2.6.35.9-64.fc14.x86_64 [root@humbles-lap ~]# The above are the files which contains information about compiled …

Read more

Generate intermediate files ( assembling, preprocessing) in gcc

Let’s start with some GCC commands as shown below. How-ever it won’t give you all the resulted files in each stage, for ex: preprocessor files. For that, I use below GCC option to generate different output files of my source. As mentioned in “man’ page it will generate “.i”, “s”, “.o” files .. Ex: #Examine …

Read more