diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/trace/events/random.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/trace/events/random.h b/include/trace/events/random.h index 2ffcaec5860a..527b5dc1b416 100644 --- a/include/trace/events/random.h +++ b/include/trace/events/random.h | |||
@@ -87,6 +87,28 @@ TRACE_EVENT(credit_entropy_bits, | |||
87 | (void *)__entry->IP) | 87 | (void *)__entry->IP) |
88 | ); | 88 | ); |
89 | 89 | ||
90 | TRACE_EVENT(push_to_pool, | ||
91 | TP_PROTO(const char *pool_name, int pool_bits, int input_bits), | ||
92 | |||
93 | TP_ARGS(pool_name, pool_bits, input_bits), | ||
94 | |||
95 | TP_STRUCT__entry( | ||
96 | __field( const char *, pool_name ) | ||
97 | __field( int, pool_bits ) | ||
98 | __field( int, input_bits ) | ||
99 | ), | ||
100 | |||
101 | TP_fast_assign( | ||
102 | __entry->pool_name = pool_name; | ||
103 | __entry->pool_bits = pool_bits; | ||
104 | __entry->input_bits = input_bits; | ||
105 | ), | ||
106 | |||
107 | TP_printk("%s: pool_bits %d input_pool_bits %d", | ||
108 | __entry->pool_name, __entry->pool_bits, | ||
109 | __entry->input_bits) | ||
110 | ); | ||
111 | |||
90 | DECLARE_EVENT_CLASS(random__get_random_bytes, | 112 | DECLARE_EVENT_CLASS(random__get_random_bytes, |
91 | TP_PROTO(int nbytes, unsigned long IP), | 113 | TP_PROTO(int nbytes, unsigned long IP), |
92 | 114 | ||