]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/configure
[PATCH] Report LTO phase in lto1 process name v2
authorAndi Kleen <ak@linux.intel.com>
Wed, 6 Oct 2010 22:02:58 +0000 (22:02 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Wed, 6 Oct 2010 22:02:58 +0000 (22:02 +0000)
commit6e9bd0f8983779325b34a9645c2634dafd14d3c9
tree4b6b55c80051aa7deeeb8de1d0979f488e306b4c
parent826d817faeaa2549589553b276e4c71f83ce6dd7
[PATCH] Report LTO phase in lto1 process name v2

On larger parallel WHOPR builds I find it useful to see in top which
phase a given lto1 is in.

Set the process name to lto1-wpa, lto1-ltrans, lto1-lto depending
on the current mode.

This is currently only implemented for Linux and only
using the "comm" process name, which is reported in top.

v2: Moved function to libiberty, renamed setproctitle to match
BSD. In theory it should pick up BSD's libc function for this
on a BSD system, but I haven't tested this.

gcc/lto/

2010-10-06  Andi Kleen <ak@linux.intel.com>

* lto.c (lto_process_name): Add.
(lto_main): Call lto_process_name.

include/

2010-10-06  Andi Kleen <ak@linux.intel.com>

* libiberty.h (setproctitle): Add prototype.

libiberty/

2010-10-06  Andi Kleen <ak@linux.intel.com>

* Makefile.in (CFILES): Add setproctitle.
(CONFIGURED_OFILES): Add setproctitle.
(setproctitle): Add rule.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
* setproctitle.c: Add file.
* functions.texi: Regenerate.

From-SVN: r165066
gcc/lto/ChangeLog
gcc/lto/lto.c
include/ChangeLog
include/libiberty.h
libiberty/ChangeLog
libiberty/Makefile.in
libiberty/config.in
libiberty/configure
libiberty/configure.ac
libiberty/functions.texi
libiberty/setproctitle.c [new file with mode: 0644]