common/utrace: Prefix all environment variables with MESA_
To be more consistent with other environment variables and ensure better scoping, all environment variables in utrace have now been prefixed with `MESA_`. Signed-off-by: Mark Collins <mark@igalia.com> Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Ack-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18271>
This commit is contained in:
@@ -368,7 +368,7 @@ static const struct debug_named_value config_control[] = {
|
||||
DEBUG_NAMED_VALUE_END
|
||||
};
|
||||
|
||||
DEBUG_GET_ONCE_OPTION(trace_file, "GPU_TRACEFILE", NULL)
|
||||
DEBUG_GET_ONCE_OPTION(trace_file, "MESA_GPU_TRACEFILE", NULL)
|
||||
|
||||
static void
|
||||
trace_file_fini(void)
|
||||
@@ -381,7 +381,7 @@ static void
|
||||
u_trace_state_init_once(void)
|
||||
{
|
||||
u_trace_state.enabled_traces =
|
||||
debug_get_flags_option("GPU_TRACES", config_control, 0);
|
||||
debug_get_flags_option("MESA_GPU_TRACES", config_control, 0);
|
||||
const char *tracefile_name = debug_get_option_trace_file();
|
||||
if (tracefile_name && !__check_suid()) {
|
||||
u_trace_state.trace_file = fopen(tracefile_name, "w");
|
||||
|
||||
Reference in New Issue
Block a user