gcc/include
Andi Kleen 6e9bd0f898 [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
2010-10-06 22:02:58 +00:00
..
ansidecl.h
ChangeLog [PATCH] Report LTO phase in lto1 process name v2 2010-10-06 22:02:58 +00:00
ChangeLog-9103
COPYING
COPYING3
demangle.h
dwarf2.h
dyn-string.h
fibheap.h
filenames.h
floatformat.h
fnmatch.h
getopt.h
hashtab.h
libiberty.h [PATCH] Report LTO phase in lto1 process name v2 2010-10-06 22:02:58 +00:00
lto-symtab.h
md5.h
objalloc.h
obstack.h
partition.h
plugin-api.h
safe-ctype.h
sha1.h
sort.h
splay-tree.h
symcat.h
xregex2.h
xregex.h
xtensa-config.h