util/u_process: remove util_get_process_name_may_override()

Also deprecate GALLIUM_PROCESSS_NAME in favor of MESA_PROCESS_NAME,
while maintaining existing functionality for use cases relying on
GALLIUM_PROCESSS_NAME.

GALLIUM_PROCESSS_NAME takes higher precedence over MESA_PROCESS_NAME in
the case where both are set.

Signed-off-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20779>
This commit is contained in:
Ryan Neph
2023-01-19 10:20:15 -08:00
committed by Marge Bot
parent c8fe878717
commit 887ca5e1b2
5 changed files with 28 additions and 50 deletions
-10
View File
@@ -41,16 +41,6 @@ util_get_process_name(void);
size_t
util_get_process_exec_path(char* process_path, size_t len);
/**
* Return the name of the current process.
* \param env_name the environment variable name used to override
* \param procname returns the process name
* \param size size of the procname buffer
* \return true or false for success, failure
*/
bool
util_get_process_name_may_override(const char *env_name, char *procname, size_t size);
/**
* Return the command line for the calling process. This is basically
* the argv[] array with the arguments separated by spaces.