aboutsummaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-06 22:02:58 +0000
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2010-10-06 22:02:58 +0000
commita3de1f55a53ab4b9fd124dd145a7a9b92d45b61d (patch)
tree4b6b55c80051aa7deeeb8de1d0979f488e306b4c /libiberty/functions.texi
parentea130120a157893d06b90b8d4cec06a5af3c90ff (diff)
[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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165066 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r--libiberty/functions.texi10
1 files changed, 9 insertions, 1 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index d9fef8cb7b3..e074ba716f8 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -667,7 +667,7 @@ relative prefix can be found, return @code{NULL}.
@end deftypefn
-@c make-temp-file.c:168
+@c make-temp-file.c:173
@deftypefn Replacement char* make_temp_file (const char *@var{suffix})
Return a temporary file name (as a string) or @code{NULL} if unable to
@@ -1146,6 +1146,14 @@ environment. This implementation is not safe for multithreaded code.
@end deftypefn
+@c setproctitle.c:30
+@deftypefn Supplemental void setproctitle(const char *@var{fmt} ...)
+
+Set the title of a process to @var{fmt}. va args not supported for now,
+but defined for compatibility with BSD.
+
+@end deftypefn
+
@c strsignal.c:348
@deftypefn Extension int signo_max (void)