X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Frandom.h;h=80b227968e611e058840d8c191971fd9918ff0ea;hp=f165600000f88ac710b2f3667a7f02f234a40538;hb=a6a26911cc7888458bd91feb433df584d7dcd5c8;hpb=f98bc8fbefdf009ab80e0e8eb5d1a3c6b4a642a3 diff --git a/instrumentation/events/lttng-module/random.h b/instrumentation/events/lttng-module/random.h index f1656000..80b22796 100644 --- a/instrumentation/events/lttng-module/random.h +++ b/instrumentation/events/lttng-module/random.h @@ -38,6 +38,24 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(random__mix_pool_bytes, mix_pool_bytes_noloc TP_ARGS(pool_name, bytes, IP) ) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,2,0)) +LTTNG_TRACEPOINT_EVENT_MAP(credit_entropy_bits, + + random_credit_entropy_bits, + + TP_PROTO(const char *pool_name, int bits, int entropy_count, + unsigned long IP), + + TP_ARGS(pool_name, bits, entropy_count, IP), + + TP_FIELDS( + ctf_string(pool_name, pool_name) + ctf_integer(int, bits, bits) + ctf_integer(int, entropy_count, entropy_count) + ctf_integer(unsigned long, IP, IP) + ) +) +#else LTTNG_TRACEPOINT_EVENT_MAP(credit_entropy_bits, random_credit_entropy_bits, @@ -55,6 +73,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(credit_entropy_bits, ctf_integer(unsigned long, IP, IP) ) ) +#endif LTTNG_TRACEPOINT_EVENT_MAP(get_random_bytes,