Archive for July, 2010

Kernel analysis tools

Linux Trace Toolkit (http://www.opersys.com/LTT/)

ftrace (in linux kernel)

sysprof (in linux kernel)

kprobes (in linux kernel)

Wednesday, July 14th, 2010 Uncategorized No Comments

Measuring clock cycles in C++

When you want to measure small times, the clock() function in C++ is not always sufficient.

The RDTSC time-stamp counter on Pentium class processors allows reading the time stamp counter from the CPU and offers a higher resolution.

Note that this way of measurement includes processes which are running in the background.

Via: http://www.mcs.anl.gov/~kazutomo/rdtsc.html

Tags:

Friday, July 9th, 2010 Uncategorized 1 Comment

Applying RT patch on linux kernel

wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-<desired_version_that_is_rt_patchable>.tar.bz2
wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-<desired_version_that_is_rt_patchable>-rt<patchversion>.bz2
tar xfvj linux-<desired_version_that_is_rt_patchable>.tar.bz2
cd linux-<desired_version_that_is_rt_patchable>
bzcat ../patch-<desired_version_that_is_rt_patchable>-rt<patchversion>.bz2 | patch -p1

source: https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO

Friday, July 9th, 2010 Uncategorized No Comments