]> git.ipfire.org Git - thirdparty/krb5.git/commit
Avoid mutex locking in krb5int_trace() 1375/head
authorAlexey Tikhonov <atikhono@redhat.com>
Fri, 4 Oct 2024 16:00:21 +0000 (18:00 +0200)
committerGreg Hudson <ghudson@mit.edu>
Tue, 8 Oct 2024 01:42:49 +0000 (21:42 -0400)
commitb03d55c2b841731c8194cb12566cad1d6d2ad3cb
treefa4743f40e073af602defa018356be37aeed5cf4
parent6f6d795be8d0dd0a46952cf8afa59b65d71df744
Avoid mutex locking in krb5int_trace()

Trace logging doesn't need unique timestamps, so the locking within
krb5_crypto_us_timeofday() makes trace logging slower for no reason.
Add a new helper k5_us_timeofday(), which is merely a wrapper around
the existing get_time_now(), and use it in krb5int_trace().

[ghudson@mit.edu: edited commit message]
src/include/k5-int.h
src/lib/krb5/os/c_ustime.c
src/lib/krb5/os/trace.c