How to install perf in Ubuntu Linux ?

Perf is a profiler tool for Linux 2.6+ based systems that abstracts away CPU hardware differences in … Read more

Understanding execution and debugging of C program using ltrace

As we seen in previous post “Understanding Very Minimal C Program and its execution in Ubuntu Linux” … Read more

C program to interact with frame buffer devices

Screen information are queried by applications using the FBIOGET_FSCREENINFO and FBIOGET_VSCREENINFO ioctls. Those ioctls take a pointer … Read more

Linux test case for framebuffer driver

Screen information are queried by applications using the FBIOGET_FSCREENINFO and FBIOGET_VSCREENINFO ioctls. Those ioctls take a pointer … Read more

Test Code for Real Time Clock ( RTC ) Linux Driver

This code can be used for testing the real time clock driver developed for new Linux based … Read more

C program to read information from sysfs file in Linux

In this post, we will write a simple C program which can read any sysfs file from … Read more

Debugging using C macros __FILE__ and __func__ and __LINE__

Following program shows a sample example of how we can use C macros __FILE__ , __func__ and … Read more

Network throughput measurement using netperf

Netperf is a benchmark that can be used to measure various aspects of networking performance. Its primary … Read more

Debug levels for Linux kernel PrintK

If you have already tried to write the first kernel module from port “Writing first Linux kernel … Read more

How to compile C program for X86 Desktop and Embedded Hardware ?

If we consider that we are working on two platforms,1. x86 – 32 or 64 bit i.e. … Read more