diff options
author | Andi Kleen <ak@linux.intel.com> | 2010-10-06 22:02:58 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2010-10-06 22:02:58 +0000 |
commit | 6e9bd0f8983779325b34a9645c2634dafd14d3c9 (patch) | |
tree | 4b6b55c80051aa7deeeb8de1d0979f488e306b4c /libiberty/Makefile.in | |
parent | 826d817faeaa2549589553b276e4c71f83ce6dd7 (diff) | |
download | gcc-6e9bd0f8983779325b34a9645c2634dafd14d3c9.zip gcc-6e9bd0f8983779325b34a9645c2634dafd14d3c9.tar.gz gcc-6e9bd0f8983779325b34a9645c2634dafd14d3c9.tar.bz2 |
[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
Diffstat (limited to 'libiberty/Makefile.in')
-rw-r--r-- | libiberty/Makefile.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in index c5e9929..1893254 100644 --- a/libiberty/Makefile.in +++ b/libiberty/Makefile.in @@ -144,7 +144,8 @@ CFILES = alloca.c argv.c asprintf.c atexit.c \ pex-unix.c pex-win32.c \ physmem.c putenv.c \ random.c regex.c rename.c rindex.c \ - safe-ctype.c setenv.c sha1.c sigsetmask.c snprintf.c sort.c \ + safe-ctype.c setenv.c setproctitle.c sha1.c sigsetmask.c \ + snprintf.c sort.c \ spaces.c splay-tree.c stpcpy.c stpncpy.c strcasecmp.c \ strchr.c strdup.c strerror.c strncasecmp.c strncmp.c \ strrchr.c strsignal.c strstr.c strtod.c strtol.c strtoul.c \ @@ -201,7 +202,9 @@ CONFIGURED_OFILES = ./asprintf.$(objext) ./atexit.$(objext) \ ./pex-unix.$(objext) ./pex-win32.$(objext) \ ./putenv.$(objext) \ ./random.$(objext) ./rename.$(objext) ./rindex.$(objext) \ - ./setenv.$(objext) ./sigsetmask.$(objext) ./snprintf.$(objext) \ + ./setenv.$(objext) \ + ./setproctitle.$(objext) \ + ./sigsetmask.$(objext) ./snprintf.$(objext) \ ./stpcpy.$(objext) ./stpncpy.$(objext) ./strcasecmp.$(objext) \ ./strchr.$(objext) ./strdup.$(objext) ./strncasecmp.$(objext) \ ./strncmp.$(objext) ./strndup.$(objext) ./strrchr.$(objext) \ @@ -944,6 +947,12 @@ $(CONFIGURED_OFILES): stamp-picdir else true; fi $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION) +./setproctitle.$(objext): $(srcdir)/setproctitle.c config.h $(INCDIR)/ansidecl.h + if [ x"$(PICFLAG)" != x ]; then \ + $(COMPILE.c) $(PICFLAG) $(srcdir)/setproctitle.c -o pic/$@; \ + else true; fi + $(COMPILE.c) $(srcdir)/setproctitle.c $(OUTPUT_OPTION) + ./sha1.$(objext): $(srcdir)/sha1.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/sha1.h if [ x"$(PICFLAG)" != x ]; then \ $(COMPILE.c) $(PICFLAG) $(srcdir)/sha1.c -o pic/$@; \ |