Skip to content

Commit

Permalink
as we split h2olog and USDT, latter no longer refers to per-connectio…
Browse files Browse the repository at this point in the history
…n skip flag
  • Loading branch information
kazuho committed Nov 25, 2024
1 parent 2debf2a commit b48ad5c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/picotls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b48ad5c

Please sign in to comment.