aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-06-09 14:04:26 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-06-09 14:17:36 -0400
commit6556d1df88fe68f9836beeb43342a336691cb67c (patch)
treef9c550134fdf74fadafee32253a8a69552bfc9f1 /include
parent55782138e47d9baf2f7d3a7af9e7cf42adf72c56 (diff)
tracing: fix the block trace points print size
The sector field is either u64 or unsigned long depending on the arch. This patch casts the sector to unsigned long long to prevent the printf warnings. [ Impact: remove compile warnings ] Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/block.h45
1 files changed, 30 insertions, 15 deletions
diff --git a/include/trace/events/block.h b/include/trace/events/block.h
index a99d1e565bb0..53effd496a50 100644
--- a/include/trace/events/block.h
+++ b/include/trace/events/block.h
@@ -37,7 +37,8 @@ TRACE_EVENT(block_rq_abort,
37 TP_printk("%d,%d %s (%s) %llu + %u [%d]", 37 TP_printk("%d,%d %s (%s) %llu + %u [%d]",
38 MAJOR(__entry->dev), MINOR(__entry->dev), 38 MAJOR(__entry->dev), MINOR(__entry->dev),
39 __entry->rwbs, __get_str(cmd), 39 __entry->rwbs, __get_str(cmd),
40 __entry->sector, __entry->nr_sector, __entry->errors) 40 (unsigned long long)__entry->sector,
41 __entry->nr_sector, __entry->errors)
41); 42);
42 43
43TRACE_EVENT(block_rq_insert, 44TRACE_EVENT(block_rq_insert,
@@ -71,7 +72,8 @@ TRACE_EVENT(block_rq_insert,
71 TP_printk("%d,%d %s %u (%s) %llu + %u [%s]", 72 TP_printk("%d,%d %s %u (%s) %llu + %u [%s]",
72 MAJOR(__entry->dev), MINOR(__entry->dev), 73 MAJOR(__entry->dev), MINOR(__entry->dev),
73 __entry->rwbs, __entry->bytes, __get_str(cmd), 74 __entry->rwbs, __entry->bytes, __get_str(cmd),
74 __entry->sector, __entry->nr_sector, __entry->comm) 75 (unsigned long long)__entry->sector,
76 __entry->nr_sector, __entry->comm)
75); 77);
76 78
77TRACE_EVENT(block_rq_issue, 79TRACE_EVENT(block_rq_issue,
@@ -105,7 +107,8 @@ TRACE_EVENT(block_rq_issue,
105 TP_printk("%d,%d %s %u (%s) %llu + %u [%s]", 107 TP_printk("%d,%d %s %u (%s) %llu + %u [%s]",
106 MAJOR(__entry->dev), MINOR(__entry->dev), 108 MAJOR(__entry->dev), MINOR(__entry->dev),
107 __entry->rwbs, __entry->bytes, __get_str(cmd), 109 __entry->rwbs, __entry->bytes, __get_str(cmd),
108 __entry->sector, __entry->nr_sector, __entry->comm) 110 (unsigned long long)__entry->sector,
111 __entry->nr_sector, __entry->comm)
109); 112);
110 113
111TRACE_EVENT(block_rq_requeue, 114TRACE_EVENT(block_rq_requeue,
@@ -137,7 +140,8 @@ TRACE_EVENT(block_rq_requeue,
137 TP_printk("%d,%d %s (%s) %llu + %u [%d]", 140 TP_printk("%d,%d %s (%s) %llu + %u [%d]",
138 MAJOR(__entry->dev), MINOR(__entry->dev), 141 MAJOR(__entry->dev), MINOR(__entry->dev),
139 __entry->rwbs, __get_str(cmd), 142 __entry->rwbs, __get_str(cmd),
140 __entry->sector, __entry->nr_sector, __entry->errors) 143 (unsigned long long)__entry->sector,
144 __entry->nr_sector, __entry->errors)
141); 145);
142 146
143TRACE_EVENT(block_rq_complete, 147TRACE_EVENT(block_rq_complete,
@@ -169,7 +173,8 @@ TRACE_EVENT(block_rq_complete,
169 TP_printk("%d,%d %s (%s) %llu + %u [%d]", 173 TP_printk("%d,%d %s (%s) %llu + %u [%d]",
170 MAJOR(__entry->dev), MINOR(__entry->dev), 174 MAJOR(__entry->dev), MINOR(__entry->dev),
171 __entry->rwbs, __get_str(cmd), 175 __entry->rwbs, __get_str(cmd),
172 __entry->sector, __entry->nr_sector, __entry->errors) 176 (unsigned long long)__entry->sector,
177 __entry->nr_sector, __entry->errors)
173); 178);
174TRACE_EVENT(block_bio_bounce, 179TRACE_EVENT(block_bio_bounce,
175 180
@@ -195,7 +200,8 @@ TRACE_EVENT(block_bio_bounce,
195 200
196 TP_printk("%d,%d %s %llu + %u [%s]", 201 TP_printk("%d,%d %s %llu + %u [%s]",
197 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 202 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
198 __entry->sector, __entry->nr_sector, __entry->comm) 203 (unsigned long long)__entry->sector,
204 __entry->nr_sector, __entry->comm)
199); 205);
200 206
201TRACE_EVENT(block_bio_complete, 207TRACE_EVENT(block_bio_complete,
@@ -221,7 +227,8 @@ TRACE_EVENT(block_bio_complete,
221 227
222 TP_printk("%d,%d %s %llu + %u [%d]", 228 TP_printk("%d,%d %s %llu + %u [%d]",
223 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 229 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
224 __entry->sector, __entry->nr_sector, __entry->error) 230 (unsigned long long)__entry->sector,
231 __entry->nr_sector, __entry->error)
225); 232);
226 233
227TRACE_EVENT(block_bio_backmerge, 234TRACE_EVENT(block_bio_backmerge,
@@ -248,7 +255,8 @@ TRACE_EVENT(block_bio_backmerge,
248 255
249 TP_printk("%d,%d %s %llu + %u [%s]", 256 TP_printk("%d,%d %s %llu + %u [%s]",
250 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 257 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
251 __entry->sector, __entry->nr_sector, __entry->comm) 258 (unsigned long long)__entry->sector,
259 __entry->nr_sector, __entry->comm)
252); 260);
253 261
254TRACE_EVENT(block_bio_frontmerge, 262TRACE_EVENT(block_bio_frontmerge,
@@ -275,7 +283,8 @@ TRACE_EVENT(block_bio_frontmerge,
275 283
276 TP_printk("%d,%d %s %llu + %u [%s]", 284 TP_printk("%d,%d %s %llu + %u [%s]",
277 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 285 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
278 __entry->sector, __entry->nr_sector, __entry->comm) 286 (unsigned long long)__entry->sector,
287 __entry->nr_sector, __entry->comm)
279); 288);
280 289
281TRACE_EVENT(block_bio_queue, 290TRACE_EVENT(block_bio_queue,
@@ -302,7 +311,8 @@ TRACE_EVENT(block_bio_queue,
302 311
303 TP_printk("%d,%d %s %llu + %u [%s]", 312 TP_printk("%d,%d %s %llu + %u [%s]",
304 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 313 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
305 __entry->sector, __entry->nr_sector, __entry->comm) 314 (unsigned long long)__entry->sector,
315 __entry->nr_sector, __entry->comm)
306); 316);
307 317
308TRACE_EVENT(block_getrq, 318TRACE_EVENT(block_getrq,
@@ -330,7 +340,8 @@ TRACE_EVENT(block_getrq,
330 340
331 TP_printk("%d,%d %s %llu + %u [%s]", 341 TP_printk("%d,%d %s %llu + %u [%s]",
332 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 342 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
333 __entry->sector, __entry->nr_sector, __entry->comm) 343 (unsigned long long)__entry->sector,
344 __entry->nr_sector, __entry->comm)
334); 345);
335 346
336TRACE_EVENT(block_sleeprq, 347TRACE_EVENT(block_sleeprq,
@@ -358,7 +369,8 @@ TRACE_EVENT(block_sleeprq,
358 369
359 TP_printk("%d,%d %s %llu + %u [%s]", 370 TP_printk("%d,%d %s %llu + %u [%s]",
360 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 371 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
361 __entry->sector, __entry->nr_sector, __entry->comm) 372 (unsigned long long)__entry->sector,
373 __entry->nr_sector, __entry->comm)
362); 374);
363 375
364TRACE_EVENT(block_plug, 376TRACE_EVENT(block_plug,
@@ -441,7 +453,9 @@ TRACE_EVENT(block_split,
441 453
442 TP_printk("%d,%d %s %llu / %llu [%s]", 454 TP_printk("%d,%d %s %llu / %llu [%s]",
443 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 455 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
444 __entry->sector, __entry->new_sector, __entry->comm) 456 (unsigned long long)__entry->sector,
457 (unsigned long long)__entry->new_sector,
458 __entry->comm)
445); 459);
446 460
447TRACE_EVENT(block_remap, 461TRACE_EVENT(block_remap,
@@ -471,9 +485,10 @@ TRACE_EVENT(block_remap,
471 485
472 TP_printk("%d,%d %s %llu + %u <- (%d,%d) %llu", 486 TP_printk("%d,%d %s %llu + %u <- (%d,%d) %llu",
473 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs, 487 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->rwbs,
474 __entry->sector, __entry->nr_sector, 488 (unsigned long long)__entry->sector,
489 __entry->nr_sector,
475 MAJOR(__entry->old_dev), MINOR(__entry->old_dev), 490 MAJOR(__entry->old_dev), MINOR(__entry->old_dev),
476 __entry->old_sector) 491 (unsigned long long)__entry->old_sector)
477); 492);
478 493
479#endif /* _TRACE_BLOCK_H */ 494#endif /* _TRACE_BLOCK_H */