From b48ad5caecfb719c3d0bddf7e65a11e65ece6c0b Mon Sep 17 00:00:00 2001 From: Kazuho Oku Date: Mon, 25 Nov 2024 16:23:46 +0900 Subject: [PATCH] as we split h2olog and USDT, latter no longer refers to per-connection skip flag --- lib/picotls.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/picotls.c b/lib/picotls.c index 5a64e4a3..7f213a75 100644 --- a/lib/picotls.c +++ b/lib/picotls.c @@ -104,18 +104,15 @@ static const char ech_info_prefix[8] = "tls ech"; #endif #if PICOTLS_USE_DTRACE -#define PTLS_SHOULD_PROBE(LABEL, tls) (PTLS_UNLIKELY(PICOTLS_##LABEL##_ENABLED()) && !(tls)->skip_tracing) #define PTLS_PROBE0(LABEL, tls) \ do { \ - ptls_t *_tls = (tls); \ - if (PTLS_SHOULD_PROBE(LABEL, _tls)) \ - PICOTLS_##LABEL(_tls); \ + if (PTLS_UNLIKELY(PICOTLS_##LABEL##_ENABLED())) \ + PICOTLS_##LABEL(tls); \ } while (0) #define PTLS_PROBE(LABEL, tls, ...) \ do { \ - ptls_t *_tls = (tls); \ - if (PTLS_SHOULD_PROBE(LABEL, _tls)) \ - PICOTLS_##LABEL(_tls, __VA_ARGS__); \ + if (PTLS_UNLIKELY(PICOTLS_##LABEL##_ENABLED())) \ + PICOTLS_##LABEL((tls), __VA_ARGS__); \ } while (0) #else #define PTLS_PROBE0(LABEL, tls)