What is gcov which comes with GCC ?

ABOUT gcov Gcov is a source code coverage analysis and statement-by-statement profiling tool. Gcov generates exact counts of the number of times each statement in a program is executed and annotates source code to add instrumentation. Gcov comes as a standard utility with the GNU Compiler Collection (GCC) suite.[1] The gcov utility gives information on …

sound: Fixed line limit issue in sound/ac97_bus.c

From a2c2867876c246420a199a0fb4c36ad2965a42cc Mon Sep 17 00:00:00 2001 From: Jeffrin Jose Date: Mon, 6 Dec 2010 19:27:53 +0530 Subject: [PATCH] sound: Fixed line limit issue in sound/ac97_bus.c This is a patch to the sound/ac97_bus.c file that fixes up a 80 character line limit issue found by the checkpatch.pl tool. Signed-off-by: Jeffrin Jose — sound/ac97_bus.c | 6 …

coding standard related work for Linux kernel code using checkpatch.pl tool

$git fetch origin $ $./scripts/checkpatch.pl –file –terse sound/sound_core.c | more sound/sound_core.c:71: ERROR: trailing whitespace sound/sound_core.c:83: ERROR: trailing whitespace sound/sound_core.c:85: ERROR: trailing whitespace sound/sound_core.c:115: ERROR: open brace ‘{‘ following struct go on the same line sound/sound_core.c:123: WARNING: externs should be avoided in .c files sound/sound_core.c:126: WARNING: externs should be avoided in .c files sound/sound_core.c:155: ERROR: do …

gcov code coverage

$vi hey.c $gcc -fprofile-arcs -ftest-coverage hey.c $./a.out Hey 🙂 $gcov hey.c File ‘hey.c’ Lines executed:100.00% of 3 hey.c:creating ‘hey.c.gcov’ $cat hey.c.gcov -: 0:Source:hey.c -: 0:Graph:hey.gcno -: 0:Data:hey.gcda -: 0:Runs:1 -: 0:Programs:1 -: 1:#include 1: 2:main() -: 3:{ 1: 4:printf(” Hey 🙂 \n”); 1: 5:} $ The “.gcov” files can be examined using a normal editor. …

modify all segment registers except ..(CS)

software | Windows | In computing, a code segment, also known as a text segment or simply as text, is a phrase used to refer to a portion of memory or of an object file that contains executable instructions. source : http://en.wikipedia.org/wiki/Code_segment Note that code may always modify all segment registers except CS (the code …