Module: Mesa Branch: master Commit: 9de874539954c4fbd0cfd08443b3e60112e6c966 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9de874539954c4fbd0cfd08443b3e60112e6c966
Author: Samuel Pitoiset <[email protected]> Date: Wed Feb 10 15:26:35 2021 +0100 ac/rgp: append the number of seconds to the generated RGP file To not overwrite the previous ones. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8960> --- src/amd/common/ac_rgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_rgp.c b/src/amd/common/ac_rgp.c index 471dd682d28..ee4bc25eb6a 100644 --- a/src/amd/common/ac_rgp.c +++ b/src/amd/common/ac_rgp.c @@ -650,9 +650,9 @@ int ac_dump_thread_trace(struct radeon_info *info, const struct ac_thread_trace t = time(NULL); now = *localtime(&t); - snprintf(filename, sizeof(filename), "/tmp/%s_%04d.%02d.%02d_%02d.%02d.rgp", + snprintf(filename, sizeof(filename), "/tmp/%s_%04d.%02d.%02d_%02d.%02d.%02d.rgp", util_get_process_name(), 1900 + now.tm_year, now.tm_mon + 1, now.tm_mday, now.tm_hour, - now.tm_min); + now.tm_min, now.tm_sec); f = fopen(filename, "w+"); if (!f) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
