File btrfs-constify-tracepoint-arguments.patch of Package lttng-modules
379
1
From: Tony Jones <tonyj@suse.de>
2
Subject: btrfs: constify tracepoint arguments
3
References: bsc#1044912
4
Patch-mainline: not yet, kernel patch not yet upstream
5
6
Update lttng tp to reflect patches.suse/btrfs-constify-tracepoint-arguments
7
8
---
9
instrumentation/events/lttng-module/btrfs.h | 106 ++++++++++++++--------------
10
1 file changed, 53 insertions(+), 53 deletions(-)
11
12
--- a/instrumentation/events/lttng-module/btrfs.h
13
+++ b/instrumentation/events/lttng-module/btrfs.h
14
15
16
LTTNG_TRACEPOINT_EVENT(btrfs_transaction_commit,
17
18
- TP_PROTO(struct btrfs_root *root),
19
+ TP_PROTO(const struct btrfs_root *root),
20
21
TP_ARGS(root),
22
23
24
25
LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__inode,
26
27
- TP_PROTO(struct inode *inode),
28
+ TP_PROTO(const struct inode *inode),
29
30
TP_ARGS(inode),
31
32
33
34
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode, btrfs_inode_new,
35
36
- TP_PROTO(struct inode *inode),
37
+ TP_PROTO(const struct inode *inode),
38
39
TP_ARGS(inode)
40
)
41
42
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode, btrfs_inode_request,
43
44
- TP_PROTO(struct inode *inode),
45
+ TP_PROTO(const struct inode *inode),
46
47
TP_ARGS(inode)
48
)
49
50
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode, btrfs_inode_evict,
51
52
- TP_PROTO(struct inode *inode),
53
+ TP_PROTO(const struct inode *inode),
54
55
TP_ARGS(inode)
56
)
57
58
59
LTTNG_TRACEPOINT_EVENT(btrfs_get_extent,
60
61
- TP_PROTO(struct btrfs_root *root, struct btrfs_inode *inode,
62
- struct extent_map *map),
63
+ TP_PROTO(const struct btrfs_root *root, const struct btrfs_inode *inode,
64
+ const struct extent_map *map),
65
66
TP_ARGS(root, inode, map),
67
68
69
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
70
LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent,
71
72
- TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
73
+ TP_PROTO(const struct inode *inode, const struct btrfs_ordered_extent *ordered),
74
75
TP_ARGS(inode, ordered),
76
77
78
79
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent, btrfs_ordered_extent_add,
80
81
- TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
82
+ TP_PROTO(const struct inode *inode, const struct btrfs_ordered_extent *ordered),
83
84
TP_ARGS(inode, ordered)
85
)
86
87
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent, btrfs_ordered_extent_remove,
88
89
- TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
90
+ TP_PROTO(const struct inode *inode, const struct btrfs_ordered_extent *ordered),
91
92
TP_ARGS(inode, ordered)
93
)
94
95
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent, btrfs_ordered_extent_start,
96
97
- TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
98
+ TP_PROTO(const struct inode *inode, const struct btrfs_ordered_extent *ordered),
99
100
TP_ARGS(inode, ordered)
101
)
102
103
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent, btrfs_ordered_extent_put,
104
105
- TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
106
+ TP_PROTO(const struct inode *inode, const struct btrfs_ordered_extent *ordered),
107
108
TP_ARGS(inode, ordered)
109
)
110
111
LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__writepage,
112
113
- TP_PROTO(struct page *page, struct inode *inode,
114
- struct writeback_control *wbc),
115
+ TP_PROTO(const struct page *page, const struct inode *inode,
116
+ const struct writeback_control *wbc),
117
118
TP_ARGS(page, inode, wbc),
119
120
121
122
btrfs__extent_writepage,
123
124
- TP_PROTO(struct page *page, struct inode *inode,
125
- struct writeback_control *wbc),
126
+ TP_PROTO(const struct page *page, const struct inode *inode,
127
+ const struct writeback_control *wbc),
128
129
TP_ARGS(page, inode, wbc)
130
)
131
132
LTTNG_TRACEPOINT_EVENT(btrfs_writepage_end_io_hook,
133
134
- TP_PROTO(struct page *page, u64 start, u64 end, int uptodate),
135
+ TP_PROTO(const struct page *page, u64 start, u64 end, int uptodate),
136
137
TP_ARGS(page, start, end, uptodate),
138
139
140
141
LTTNG_TRACEPOINT_EVENT(btrfs_sync_file,
142
143
- TP_PROTO(struct file *file, int datasync),
144
+ TP_PROTO(const struct file *file, int datasync),
145
146
TP_ARGS(file, datasync),
147
148
149
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
150
LTTNG_TRACEPOINT_EVENT(btrfs_sync_fs,
151
152
- TP_PROTO(struct btrfs_fs_info *fs_info, int wait),
153
+ TP_PROTO(const struct btrfs_fs_info *fs_info, int wait),
154
155
TP_ARGS(fs_info, wait),
156
157
158
159
LTTNG_TRACEPOINT_EVENT(btrfs_add_block_group,
160
161
- TP_PROTO(struct btrfs_fs_info *fs_info,
162
- struct btrfs_block_group_cache *block_group, int create),
163
+ TP_PROTO(const struct btrfs_fs_info *fs_info,
164
+ const struct btrfs_block_group_cache *block_group, int create),
165
166
TP_ARGS(fs_info, block_group, create),
167
168
169
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
170
LTTNG_TRACEPOINT_EVENT(btrfs_delayed_tree_ref,
171
172
- TP_PROTO(struct btrfs_fs_info *fs_info,
173
- struct btrfs_delayed_ref_node *ref,
174
- struct btrfs_delayed_tree_ref *full_ref,
175
+ TP_PROTO(const struct btrfs_fs_info *fs_info,
176
+ const struct btrfs_delayed_ref_node *ref,
177
+ const struct btrfs_delayed_tree_ref *full_ref,
178
int action),
179
180
TP_ARGS(fs_info, ref, full_ref, action),
181
182
183
LTTNG_TRACEPOINT_EVENT(btrfs_delayed_data_ref,
184
185
- TP_PROTO(struct btrfs_delayed_ref_node *ref,
186
- struct btrfs_delayed_data_ref *full_ref,
187
+ TP_PROTO(const struct btrfs_delayed_ref_node *ref,
188
+ const struct btrfs_delayed_data_ref *full_ref,
189
int action),
190
191
TP_ARGS(ref, full_ref, action),
192
193
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
194
LTTNG_TRACEPOINT_EVENT(btrfs_delayed_ref_head,
195
196
- TP_PROTO(struct btrfs_fs_info *fs_info,
197
- struct btrfs_delayed_ref_node *ref,
198
- struct btrfs_delayed_ref_head *head_ref,
199
+ TP_PROTO(const struct btrfs_fs_info *fs_info,
200
+ const struct btrfs_delayed_ref_node *ref,
201
+ const struct btrfs_delayed_ref_head *head_ref,
202
int action),
203
204
TP_ARGS(fs_info, ref, head_ref, action),
205
206
207
LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk,
208
209
- TP_PROTO(struct btrfs_fs_info *fs_info, struct map_lookup *map,
210
+ TP_PROTO(const struct btrfs_fs_info *fs_info, const struct map_lookup *map,
211
u64 offset, u64 size),
212
213
TP_ARGS(fs_info, map, offset, size),
214
215
216
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk, btrfs_chunk_alloc,
217
218
- TP_PROTO(struct btrfs_fs_info *info, struct map_lookup *map,
219
+ TP_PROTO(const struct btrfs_fs_info *info, const struct map_lookup *map,
220
u64 offset, u64 size),
221
222
TP_ARGS(info, map, offset, size)
223
224
225
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__chunk, btrfs_chunk_free,
226
227
- TP_PROTO(struct btrfs_fs_info *info, struct map_lookup *map,
228
+ TP_PROTO(const struct btrfs_fs_info *info, const struct map_lookup *map,
229
u64 offset, u64 size),
230
231
TP_ARGS(info, map, offset, size)
232
233
234
LTTNG_TRACEPOINT_EVENT(btrfs_cow_block,
235
236
- TP_PROTO(struct btrfs_root *root, struct extent_buffer *buf,
237
- struct extent_buffer *cow),
238
+ TP_PROTO(const struct btrfs_root *root, const struct extent_buffer *buf,
239
+ const struct extent_buffer *cow),
240
241
TP_ARGS(root, buf, cow),
242
243
244
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
245
LTTNG_TRACEPOINT_EVENT(btrfs_space_reservation,
246
247
- TP_PROTO(struct btrfs_fs_info *fs_info, char *type, u64 val,
248
+ TP_PROTO(const struct btrfs_fs_info *fs_info, char *type, u64 val,
249
u64 bytes, int reserve),
250
251
TP_ARGS(fs_info, type, val, bytes, reserve),
252
253
254
LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserved_extent,
255
256
- TP_PROTO(struct btrfs_fs_info *info, u64 start, u64 len),
257
+ TP_PROTO(const struct btrfs_fs_info *info, u64 start, u64 len),
258
259
TP_ARGS(info, start, len),
260
261
262
263
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent, btrfs_reserved_extent_alloc,
264
265
- TP_PROTO(struct btrfs_fs_info *info, u64 start, u64 len),
266
+ TP_PROTO(const struct btrfs_fs_info *info, u64 start, u64 len),
267
268
TP_ARGS(info, start, len)
269
)
270
271
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserved_extent, btrfs_reserved_extent_free,
272
273
- TP_PROTO(struct btrfs_fs_info *info, u64 start, u64 len),
274
+ TP_PROTO(const struct btrfs_fs_info *info, u64 start, u64 len),
275
276
TP_ARGS(info, start, len)
277
)
278
279
280
btrfs_find_free_extent,
281
282
- TP_PROTO(struct btrfs_fs_info *info, u64 num_bytes, u64 empty_size,
283
+ TP_PROTO(const struct btrfs_fs_info *info, u64 num_bytes, u64 empty_size,
284
u64 data),
285
286
TP_ARGS(info, num_bytes, empty_size, data),
287
288
289
LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__reserve_extent,
290
291
- TP_PROTO(struct btrfs_fs_info *info,
292
- struct btrfs_block_group_cache *block_group, u64 start,
293
+ TP_PROTO(const struct btrfs_fs_info *info,
294
+ const struct btrfs_block_group_cache *block_group, u64 start,
295
u64 len),
296
297
TP_ARGS(info, block_group, start, len),
298
299
300
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent, btrfs_reserve_extent,
301
302
- TP_PROTO(struct btrfs_fs_info *info,
303
- struct btrfs_block_group_cache *block_group, u64 start,
304
+ TP_PROTO(const struct btrfs_fs_info *info,
305
+ const struct btrfs_block_group_cache *block_group, u64 start,
306
u64 len),
307
308
TP_ARGS(info, block_group, start, len)
309
310
311
LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__reserve_extent, btrfs_reserve_extent_cluster,
312
313
- TP_PROTO(struct btrfs_fs_info *info,
314
- struct btrfs_block_group_cache *block_group, u64 start,
315
+ TP_PROTO(const struct btrfs_fs_info *info,
316
+ const struct btrfs_block_group_cache *block_group, u64 start,
317
u64 len),
318
319
TP_ARGS(info, block_group, start, len)
320
321
322
LTTNG_TRACEPOINT_EVENT(btrfs_find_cluster,
323
324
- TP_PROTO(struct btrfs_block_group_cache *block_group, u64 start,
325
+ TP_PROTO(const struct btrfs_block_group_cache *block_group, u64 start,
326
u64 bytes, u64 empty_size, u64 min_bytes),
327
328
TP_ARGS(block_group, start, bytes, empty_size, min_bytes),
329
330
331
LTTNG_TRACEPOINT_EVENT(btrfs_failed_cluster_setup,
332
333
- TP_PROTO(struct btrfs_block_group_cache *block_group),
334
+ TP_PROTO(const struct btrfs_block_group_cache *block_group),
335
336
TP_ARGS(block_group),
337
338
339
340
LTTNG_TRACEPOINT_EVENT(btrfs_setup_cluster,
341
342
- TP_PROTO(struct btrfs_block_group_cache *block_group,
343
- struct btrfs_free_cluster *cluster, u64 size, int bitmap),
344
+ TP_PROTO(const struct btrfs_block_group_cache *block_group,
345
+ const struct btrfs_free_cluster *cluster, u64 size, int bitmap),
346
347
TP_ARGS(block_group, cluster, size, bitmap),
348
349
350
351
btrfs_alloc_extent_state,
352
353
- TP_PROTO(struct extent_state *state, gfp_t mask, unsigned long IP),
354
+ TP_PROTO(const struct extent_state *state, gfp_t mask, unsigned long IP),
355
356
TP_ARGS(state, mask, IP),
357
358
TP_FIELDS(
359
- ctf_integer_hex(struct extent_state *, state, state)
360
+ ctf_integer_hex(const struct extent_state *, state, state)
361
ctf_integer(gfp_t, mask, mask)
362
ctf_integer(unsigned long, ip, IP)
363
)
364
365
366
btrfs_free_extent_state,
367
368
- TP_PROTO(struct extent_state *state, unsigned long IP),
369
+ TP_PROTO(const struct extent_state *state, unsigned long IP),
370
371
TP_ARGS(state, IP),
372
373
TP_FIELDS(
374
- ctf_integer_hex(struct extent_state *, state, state)
375
+ ctf_integer_hex(const struct extent_state *, state, state)
376
ctf_integer(unsigned long, ip, IP)
377
)
378
)
379