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 rtl.def (DEBUG_IMPLICIT_PTR): New rtl code. 2010-09-09 08:43:47 +02:00
dyn-string.h
fibheap.h
filenames.h
floatformat.h floatformat.h (floatformat_ieee_half_big): Add declaration. 2010-07-06 13:00:59 +00:00
fnmatch.h
getopt.h
hashtab.h utils.c (init_gnat_to_gnu): Use typed GC allocation. 2010-06-08 07:25:24 +00:00
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 plugin-api.h (ld_plugin_set_extra_library_path): New. 2010-06-21 21:14:46 +00:00
safe-ctype.h
sha1.h
sort.h
splay-tree.h utils.c (init_gnat_to_gnu): Use typed GC allocation. 2010-06-08 07:25:24 +00:00
symcat.h
xregex2.h
xregex.h
xtensa-config.h