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
..
COPYING
COPYING3
ChangeLog [PATCH] Report LTO phase in lto1 process name v2 2010-10-06 22:02:58 +00:00
ChangeLog-9103
ansidecl.h re PR bootstrap/41771 (Bootstrap with Sun Studio 12.1 fails) 2010-01-05 17:14:30 +00:00
demangle.h re PR c++/12909 (ambiguity in mangling vector types) 2010-02-03 15:42:35 -05:00
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 * filenames.h (PATH_SEPARATOR): Delete. 2010-04-26 17:43:53 +00:00
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 Update copyright notice to use GPLv3. 2010-04-20 08:36:39 +00:00
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 * symcat.h (CONCAT5, CONCAT6, XCONCAT5, XCONCAT6): Define. 2010-03-23 15:58:01 +00:00
xregex.h
xregex2.h
xtensa-config.h MAINTAINERS (CPU Port Maintainers): Add myself for xtensa port. 2010-05-26 17:36:37 +00:00