Using GDB to debug functions defined in another file in C

In our previous post “How to use gdb for debugging application programs ( On Ubuntu Linux using C program )” we seen how we can debug the C program where all of the code is written in single C file. In this post, we will show you how you can debug the C function written … Read more

How to use mtrace to detect memory leaks in executable in Linux

We will create a simple program as below, [c] #include <stdio.h> #include <stdlib.h> #include <mcheck.h> int main(int argc, char **argv) { int *p; // start the trace mtrace(); p = (int *)malloc(sizeof(int)); *p = 2; printf("contents of P is %d\n", *p); return 0; } [/c] Note here: if we want to use mtrace to detect … Read more

Netdata – Real-time performance monitoring tool for Linux

Recently we encountered with one of the beautiful tool we could get for monitoring Linux’s real time parameters such as CPU usage, RAM usage etc. This tool monitors following parameters, CPU usage, interrupts, softirqs and frequency (total and per core)RAM, swap and kernel memory usage (including KSM and kernel memory deduper)Disks (per disk: I/O, operations, … Read more

Using hcitool to get bluetooth device information

Below commands are shown for communication between Linux Laptop and Samsung Mobile to get Mobile bluetooth device information using hcitool. For this, first make sure laptop bluetooth is turned ON and then switch ON the Bluetooth of Mobile and Make it discoverable/visible to all nearby bluetooth devices. Lets try to understand what is hcitool, $ … Read more

Monitor Memory, CPU usage, processes i.e. system resources on Linux

System administrators need to monitor their server to ensure proper functioning. The practice enables administrators to detect possible issues in advance and recover the system, before it causes any trouble. There are plenty of commands on Linux to monitor different system resources like cpu usage, memory usage, network, disk usage and so on. Popular ones … Read more

Identify memory usage in Linux, Android using “smem” memory reporting tool

smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. Because large portions of physical memory are typically shared among multiple applications, … Read more

How to cross compile Busybox

BusyBox combines tiny versions of many common UNIX utilities / commands into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins. Following steps helps to cross compile Busybox to a … Read more

Online tools for Software Developers from ExtendsClass

The ExtendsClass website provides a wealth of free online tools that make work-life easier for developers. No need to install plugin in your browser! Online tools include several fiddles, API clients, code checkers, formatters, validators and more. Within this post we will list some of the more helpful of its utilities. Playgrounds ExtendsClass provides many … Read more