summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/os/os_process.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-06-29 16:30:54 -0600
committerBrian Paul <[email protected]>2016-08-01 12:20:19 -0600
commit13fa0513569d0145487e12f3bc3aa10bc51088f7 (patch)
treec1d5efb9b7436d0a985dcaeef4e3adaab6fbfed4 /src/gallium/auxiliary/os/os_process.h
parentc2b4942afcc7389ba99e230ec34eab03d9863205 (diff)
auxiliary/os: add new os_get_command_line() function
This can be used by the driver to get the command line which started the process. Will be used by the VMware driver for extra logging. For now, this is only implemented for Linux via /proc/self/cmdline and Windows via GetCommandLine(). Reviewed-by: Charmaine Lee <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/os/os_process.h')
-rw-r--r--src/gallium/auxiliary/os/os_process.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/os/os_process.h b/src/gallium/auxiliary/os/os_process.h
index 0d50ddc6add..9c5b31dfcc5 100644
--- a/src/gallium/auxiliary/os/os_process.h
+++ b/src/gallium/auxiliary/os/os_process.h
@@ -37,4 +37,8 @@ extern boolean
os_get_process_name(char *str, size_t size);
+extern boolean
+os_get_command_line(char *cmdline, size_t size);
+
+
#endif /* OS_PROCESS_H */