lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 07 Sep 2009 10:24:52 +0200
From:	Peter Oberparleiter <oberpar@...ux.vnet.ibm.com>
To:	Amerigo Wang <amwang@...hat.com>
CC:	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
	linux-kbuild@...r.kernel.org, Sam Ravnborg <sam@...nborg.org>
Subject: Re: [RFC Patch 0/5] gcov: integrate gcov into kbuild

Amerigo Wang wrote:
> This patchset is mainly to integrate gcov into kbuild system, so that
> we can use "make foo/bar.c.gcov" to get the gcov files.
> Also moves the useful scripts in gcov.txt into tools/gcov/ direcotry.

Interesting approach - this should definitely make it more easy for 
developers to get coverage data for their code. A couple of 
thoughts/observations:

- does not work when compiling with a separate build directory (make O=)

/sys/kernel/debug/gcov//mnt/out//mnt/linux-2.6.gcno:cannot open graph file
make[2]: *** [init/main.c.gcov] Error 1
make[1]: *** [init/main.c.gcov] Error 2
make: *** [sub-make] Error 2

This is most likely due to target_base_name being an absolute path 
(relative to srctree) in case build and source directories are different.

- gcov call should use option -p, otherwise gcov may overwrite .gcov 
files if a .c file includes two .h files from different directories.
- an option to generate .gcov files for all .c files in a subdirectory 
would be nice


Regards,
   Peter Oberparleiter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ