aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-01-06 09:51:36 -0500
committerDavid Sterba <dsterba@suse.com>2017-01-09 05:27:07 -0500
commit562a7a07bf61e2949f7cbdb6ac7537ad9e2794d1 (patch)
treeba4440741ccdd6cf427d5e8345197654b7b0e11a
parent7856654842bdbebc0fbcbf51573da5d70a787aba (diff)
btrfs: make tracepoint format strings more compact
We've recently added the fsid to trace events, this makes the line quite long. To reduce the it again, remove extra spaces around = and remove ",". Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--include/trace/events/btrfs.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index 2026a89786b0..88d18a8ceb59 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -130,8 +130,8 @@ DECLARE_EVENT_CLASS(btrfs__inode,
130 BTRFS_I(inode)->root->root_key.objectid; 130 BTRFS_I(inode)->root->root_key.objectid;
131 ), 131 ),
132 132
133 TP_printk_btrfs("root = %llu(%s), gen = %llu, ino = %lu, blocks = %llu, " 133 TP_printk_btrfs("root=%llu(%s) gen=%llu ino=%lu blocks=%llu "
134 "disk_i_size = %llu, last_trans = %llu, logged_trans = %llu", 134 "disk_i_size=%llu last_trans=%llu logged_trans=%llu",
135 show_root_type(__entry->root_objectid), 135 show_root_type(__entry->root_objectid),
136 (unsigned long long)__entry->generation, 136 (unsigned long long)__entry->generation,
137 (unsigned long)__entry->ino, 137 (unsigned long)__entry->ino,
@@ -217,10 +217,10 @@ TRACE_EVENT_CONDITION(btrfs_get_extent,
217 __entry->compress_type = map->compress_type; 217 __entry->compress_type = map->compress_type;
218 ), 218 ),
219 219
220 TP_printk_btrfs("root = %llu(%s), ino = %llu start = %llu, len = %llu, " 220 TP_printk_btrfs("root=%llu(%s) ino=%llu start=%llu len=%llu "
221 "orig_start = %llu, block_start = %llu(%s), " 221 "orig_start=%llu block_start=%llu(%s) "
222 "block_len = %llu, flags = %s, refs = %u, " 222 "block_len=%llu flags=%s refs=%u "
223 "compress_type = %u", 223 "compress_type=%u",
224 show_root_type(__entry->root_objectid), 224 show_root_type(__entry->root_objectid),
225 (unsigned long long)__entry->ino, 225 (unsigned long long)__entry->ino,
226 (unsigned long long)__entry->start, 226 (unsigned long long)__entry->start,
@@ -281,11 +281,11 @@ DECLARE_EVENT_CLASS(btrfs__ordered_extent,
281 __entry->truncated_len = ordered->truncated_len; 281 __entry->truncated_len = ordered->truncated_len;
282 ), 282 ),
283 283
284 TP_printk_btrfs("root = %llu(%s), ino = %llu, file_offset = %llu, " 284 TP_printk_btrfs("root=%llu(%s) ino=%llu file_offset=%llu "
285 "start = %llu, len = %llu, disk_len = %llu, " 285 "start=%llu len=%llu disk_len=%llu "
286 "truncated_len = %llu, " 286 "truncated_len=%llu "
287 "bytes_left = %llu, flags = %s, compress_type = %d, " 287 "bytes_left=%llu flags=%s compress_type=%d "
288 "refs = %d", 288 "refs=%d",
289 show_root_type(__entry->root_objectid), 289 show_root_type(__entry->root_objectid),
290 (unsigned long long)__entry->ino, 290 (unsigned long long)__entry->ino,
291 (unsigned long long)__entry->file_offset, 291 (unsigned long long)__entry->file_offset,
@@ -362,10 +362,10 @@ DECLARE_EVENT_CLASS(btrfs__writepage,
362 BTRFS_I(inode)->root->root_key.objectid; 362 BTRFS_I(inode)->root->root_key.objectid;
363 ), 363 ),
364 364
365 TP_printk_btrfs("root = %llu(%s), ino = %lu, page_index = %lu, " 365 TP_printk_btrfs("root=%llu(%s) ino=%lu page_index=%lu "
366 "nr_to_write = %ld, pages_skipped = %ld, range_start = %llu, " 366 "nr_to_write=%ld pages_skipped=%ld range_start=%llu "
367 "range_end = %llu, for_kupdate = %d, " 367 "range_end=%llu for_kupdate=%d "
368 "for_reclaim = %d, range_cyclic = %d, writeback_index = %lu", 368 "for_reclaim=%d range_cyclic=%d writeback_index=%lu",
369 show_root_type(__entry->root_objectid), 369 show_root_type(__entry->root_objectid),
370 (unsigned long)__entry->ino, __entry->index, 370 (unsigned long)__entry->ino, __entry->index,
371 __entry->nr_to_write, __entry->pages_skipped, 371 __entry->nr_to_write, __entry->pages_skipped,
@@ -408,8 +408,8 @@ TRACE_EVENT(btrfs_writepage_end_io_hook,
408 BTRFS_I(page->mapping->host)->root->root_key.objectid; 408 BTRFS_I(page->mapping->host)->root->root_key.objectid;
409 ), 409 ),
410 410
411 TP_printk_btrfs("root = %llu(%s), ino = %lu, page_index = %lu, start = %llu, " 411 TP_printk_btrfs("root=%llu(%s) ino=%lu page_index=%lu start=%llu "
412 "end = %llu, uptodate = %d", 412 "end=%llu uptodate=%d",
413 show_root_type(__entry->root_objectid), 413 show_root_type(__entry->root_objectid),
414 (unsigned long)__entry->ino, (unsigned long)__entry->index, 414 (unsigned long)__entry->ino, (unsigned long)__entry->index,
415 (unsigned long long)__entry->start, 415 (unsigned long long)__entry->start,
@@ -441,7 +441,7 @@ TRACE_EVENT(btrfs_sync_file,
441 BTRFS_I(inode)->root->root_key.objectid; 441 BTRFS_I(inode)->root->root_key.objectid;
442 ), 442 ),
443 443
444 TP_printk_btrfs("root = %llu(%s), ino = %ld, parent = %ld, datasync = %d", 444 TP_printk_btrfs("root=%llu(%s) ino=%ld parent=%ld datasync=%d",
445 show_root_type(__entry->root_objectid), 445 show_root_type(__entry->root_objectid),
446 (unsigned long)__entry->ino, (unsigned long)__entry->parent, 446 (unsigned long)__entry->ino, (unsigned long)__entry->parent,
447 __entry->datasync) 447 __entry->datasync)
@@ -492,9 +492,9 @@ TRACE_EVENT(btrfs_add_block_group,
492 __entry->create = create; 492 __entry->create = create;
493 ), 493 ),
494 494
495 TP_printk("%pU: block_group offset = %llu, size = %llu, " 495 TP_printk("%pU: block_group offset=%llu size=%llu "
496 "flags = %llu(%s), bytes_used = %llu, bytes_super = %llu, " 496 "flags=%llu(%s) bytes_used=%llu bytes_super=%llu "
497 "create = %d", __entry->fsid, 497 "create=%d", __entry->fsid,
498 (unsigned long long)__entry->offset, 498 (unsigned long long)__entry->offset,
499 (unsigned long long)__entry->size, 499 (unsigned long long)__entry->size,
500 (unsigned long long)__entry->flags, 500 (unsigned long long)__entry->flags,
@@ -543,9 +543,9 @@ DECLARE_EVENT_CLASS(btrfs_delayed_tree_ref,
543 __entry->seq = ref->seq; 543 __entry->seq = ref->seq;
544 ), 544 ),
545 545
546 TP_printk_btrfs("bytenr = %llu, num_bytes = %llu, action = %s, " 546 TP_printk_btrfs("bytenr=%llu num_bytes=%llu action=%s "
547 "parent = %llu(%s), ref_root = %llu(%s), level = %d, " 547 "parent=%llu(%s) ref_root=%llu(%s) level=%d "
548 "type = %s, seq = %llu", 548 "type=%s seq=%llu",
549 (unsigned long long)__entry->bytenr, 549 (unsigned long long)__entry->bytenr,
550 (unsigned long long)__entry->num_bytes, 550 (unsigned long long)__entry->num_bytes,
551 show_ref_action(__entry->action), 551 show_ref_action(__entry->action),
@@ -608,9 +608,9 @@ DECLARE_EVENT_CLASS(btrfs_delayed_data_ref,
608 __entry->seq = ref->seq; 608 __entry->seq = ref->seq;
609 ), 609 ),
610 610
611 TP_printk_btrfs("bytenr = %llu, num_bytes = %llu, action = %s, " 611 TP_printk_btrfs("bytenr=%llu num_bytes=%llu action=%s "
612 "parent = %llu(%s), ref_root = %llu(%s), owner = %llu, " 612 "parent=%llu(%s) ref_root=%llu(%s) owner=%llu "
613 "offset = %llu, type = %s, seq = %llu", 613 "offset=%llu type=%s seq=%llu",
614 (unsigned long long)__entry->bytenr, 614 (unsigned long long)__entry->bytenr,
615 (unsigned long long)__entry->num_bytes, 615 (unsigned long long)__entry->num_bytes,
616 show_ref_action(__entry->action), 616 show_ref_action(__entry->action),
@@ -665,7 +665,7 @@ DECLARE_EVENT_CLASS(btrfs_delayed_ref_head,
665 __entry->is_data = head_ref->is_data; 665 __entry->is_data = head_ref->is_data;
666 ), 666 ),
667 667
668 TP_printk_btrfs("bytenr = %llu, num_bytes = %llu, action = %s, is_data = %d", 668 TP_printk_btrfs("bytenr=%llu num_bytes=%llu action=%s is_data=%d",
669 (unsigned long long)__entry->bytenr, 669 (unsigned long long)__entry->bytenr,
670 (unsigned long long)__entry->num_bytes, 670 (unsigned long long)__entry->num_bytes,
671 show_ref_action(__entry->action), 671 show_ref_action(__entry->action),
@@ -729,8 +729,8 @@ DECLARE_EVENT_CLASS(btrfs__chunk,
729 __entry->root_objectid = fs_info->chunk_root->root_key.objectid; 729 __entry->root_objectid = fs_info->chunk_root->root_key.objectid;
730 ), 730 ),
731 731
732 TP_printk_btrfs("root = %llu(%s), offset = %llu, size = %llu, " 732 TP_printk_btrfs("root=%llu(%s) offset=%llu size=%llu "
733 "num_stripes = %d, sub_stripes = %d, type = %s", 733 "num_stripes=%d sub_stripes=%d type=%s",
734 show_root_type(__entry->root_objectid), 734 show_root_type(__entry->root_objectid),
735 (unsigned long long)__entry->offset, 735 (unsigned long long)__entry->offset,
736 (unsigned long long)__entry->size, 736 (unsigned long long)__entry->size,
@@ -779,8 +779,8 @@ TRACE_EVENT(btrfs_cow_block,
779 __entry->cow_level = btrfs_header_level(cow); 779 __entry->cow_level = btrfs_header_level(cow);
780 ), 780 ),
781 781
782 TP_printk_btrfs("root = %llu(%s), refs = %d, orig_buf = %llu " 782 TP_printk_btrfs("root=%llu(%s) refs=%d orig_buf=%llu "
783 "(orig_level = %d), cow_buf = %llu (cow_level = %d)", 783 "(orig_level=%d) cow_buf=%llu (cow_level=%d)",
784 show_root_type(__entry->root_objectid), 784 show_root_type(__entry->root_objectid),
785 __entry->refs, 785 __entry->refs,
786 (unsigned long long)__entry->buf_start, 786 (unsigned long long)__entry->buf_start,
@@ -844,7 +844,7 @@ TRACE_EVENT(btrfs_trigger_flush,
844 __assign_str(reason, reason) 844 __assign_str(reason, reason)
845 ), 845 ),
846 846
847 TP_printk("%pU: %s: flush = %d(%s), flags = %llu(%s), bytes = %llu", 847 TP_printk("%pU: %s: flush=%d(%s) flags=%llu(%s) bytes=%llu",
848 __entry->fsid, __get_str(reason), __entry->flush, 848 __entry->fsid, __get_str(reason), __entry->flush,
849 show_flush_action(__entry->flush), 849 show_flush_action(__entry->flush),
850 (unsigned long long)__entry->flags, 850 (unsigned long long)__entry->flags,
@@ -887,8 +887,8 @@ TRACE_EVENT(btrfs_flush_space,
887 __entry->ret = ret; 887 __entry->ret = ret;
888 ), 888 ),
889 889
890 TP_printk("%pU: state = %d(%s), flags = %llu(%s), num_bytes = %llu, " 890 TP_printk("%pU: state=%d(%s) flags=%llu(%s) num_bytes=%llu "
891 "orig_bytes = %llu, ret = %d", __entry->fsid, __entry->state, 891 "orig_bytes=%llu ret=%d", __entry->fsid, __entry->state,
892 show_flush_state(__entry->state), 892 show_flush_state(__entry->state),
893 (unsigned long long)__entry->flags, 893 (unsigned long long)__entry->flags,
894 __print_flags((unsigned long)__entry->flags, "|", 894 __print_flags((unsigned long)__entry->flags, "|",
@@ -913,7 +913,7 @@ DECLARE_EVENT_CLASS(btrfs__reserved_extent,
913 __entry->len = len; 913 __entry->len = len;
914 ), 914 ),
915 915
916 TP_printk_btrfs("root = %llu(%s), start = %llu, len = %llu", 916 TP_printk_btrfs("root=%llu(%s) start=%llu len=%llu",
917 show_root_type(BTRFS_EXTENT_TREE_OBJECTID), 917 show_root_type(BTRFS_EXTENT_TREE_OBJECTID),
918 (unsigned long long)__entry->start, 918 (unsigned long long)__entry->start,
919 (unsigned long long)__entry->len) 919 (unsigned long long)__entry->len)
@@ -952,7 +952,7 @@ TRACE_EVENT(find_free_extent,
952 __entry->data = data; 952 __entry->data = data;
953 ), 953 ),
954 954
955 TP_printk_btrfs("root = %Lu(%s), len = %Lu, empty_size = %Lu, flags = %Lu(%s)", 955 TP_printk_btrfs("root=%Lu(%s) len=%Lu empty_size=%Lu flags=%Lu(%s)",
956 show_root_type(BTRFS_EXTENT_TREE_OBJECTID), 956 show_root_type(BTRFS_EXTENT_TREE_OBJECTID),
957 __entry->num_bytes, __entry->empty_size, __entry->data, 957 __entry->num_bytes, __entry->empty_size, __entry->data,
958 __print_flags((unsigned long)__entry->data, "|", 958 __print_flags((unsigned long)__entry->data, "|",
@@ -981,8 +981,8 @@ DECLARE_EVENT_CLASS(btrfs__reserve_extent,
981 __entry->len = len; 981 __entry->len = len;
982 ), 982 ),
983 983
984 TP_printk_btrfs("root = %Lu(%s), block_group = %Lu, flags = %Lu(%s), " 984 TP_printk_btrfs("root=%Lu(%s) block_group=%Lu flags=%Lu(%s) "
985 "start = %Lu, len = %Lu", 985 "start=%Lu len=%Lu",
986 show_root_type(BTRFS_EXTENT_TREE_OBJECTID), 986 show_root_type(BTRFS_EXTENT_TREE_OBJECTID),
987 __entry->bg_objectid, 987 __entry->bg_objectid,
988 __entry->flags, __print_flags((unsigned long)__entry->flags, 988 __entry->flags, __print_flags((unsigned long)__entry->flags,
@@ -1033,8 +1033,8 @@ TRACE_EVENT(btrfs_find_cluster,
1033 __entry->min_bytes = min_bytes; 1033 __entry->min_bytes = min_bytes;
1034 ), 1034 ),
1035 1035
1036 TP_printk_btrfs("block_group = %Lu, flags = %Lu(%s), start = %Lu, len = %Lu," 1036 TP_printk_btrfs("block_group=%Lu flags=%Lu(%s) start=%Lu len=%Lu "
1037 " empty_size = %Lu, min_bytes = %Lu", __entry->bg_objectid, 1037 "empty_size=%Lu min_bytes=%Lu", __entry->bg_objectid,
1038 __entry->flags, 1038 __entry->flags,
1039 __print_flags((unsigned long)__entry->flags, "|", 1039 __print_flags((unsigned long)__entry->flags, "|",
1040 BTRFS_GROUP_FLAGS), __entry->start, 1040 BTRFS_GROUP_FLAGS), __entry->start,
@@ -1055,7 +1055,7 @@ TRACE_EVENT(btrfs_failed_cluster_setup,
1055 __entry->bg_objectid = block_group->key.objectid; 1055 __entry->bg_objectid = block_group->key.objectid;
1056 ), 1056 ),
1057 1057
1058 TP_printk_btrfs("block_group = %Lu", __entry->bg_objectid) 1058 TP_printk_btrfs("block_group=%Lu", __entry->bg_objectid)
1059); 1059);
1060 1060
1061TRACE_EVENT(btrfs_setup_cluster, 1061TRACE_EVENT(btrfs_setup_cluster,
@@ -1083,8 +1083,8 @@ TRACE_EVENT(btrfs_setup_cluster,
1083 __entry->bitmap = bitmap; 1083 __entry->bitmap = bitmap;
1084 ), 1084 ),
1085 1085
1086 TP_printk_btrfs("block_group = %Lu, flags = %Lu(%s), window_start = %Lu, " 1086 TP_printk_btrfs("block_group=%Lu flags=%Lu(%s) window_start=%Lu "
1087 "size = %Lu, max_size = %Lu, bitmap = %d", 1087 "size=%Lu max_size=%Lu bitmap=%d",
1088 __entry->bg_objectid, 1088 __entry->bg_objectid,
1089 __entry->flags, 1089 __entry->flags,
1090 __print_flags((unsigned long)__entry->flags, "|", 1090 __print_flags((unsigned long)__entry->flags, "|",
@@ -1111,7 +1111,7 @@ TRACE_EVENT(alloc_extent_state,
1111 __entry->ip = IP 1111 __entry->ip = IP
1112 ), 1112 ),
1113 1113
1114 TP_printk("state=%p; mask = %s; caller = %pS", __entry->state, 1114 TP_printk("state=%p mask=%s caller=%pS", __entry->state,
1115 show_gfp_flags(__entry->mask), (void *)__entry->ip) 1115 show_gfp_flags(__entry->mask), (void *)__entry->ip)
1116); 1116);
1117 1117
@@ -1131,7 +1131,7 @@ TRACE_EVENT(free_extent_state,
1131 __entry->ip = IP 1131 __entry->ip = IP
1132 ), 1132 ),
1133 1133
1134 TP_printk(" state=%p; caller = %pS", __entry->state, 1134 TP_printk("state=%p caller=%pS", __entry->state,
1135 (void *)__entry->ip) 1135 (void *)__entry->ip)
1136); 1136);
1137 1137
@@ -1159,8 +1159,8 @@ DECLARE_EVENT_CLASS(btrfs__work,
1159 __entry->normal_work = &work->normal_work; 1159 __entry->normal_work = &work->normal_work;
1160 ), 1160 ),
1161 1161
1162 TP_printk_btrfs("work=%p (normal_work=%p), wq=%p, func=%pf, ordered_func=%p," 1162 TP_printk_btrfs("work=%p (normal_work=%p) wq=%p func=%pf ordered_func=%p "
1163 " ordered_free=%p", 1163 "ordered_free=%p",
1164 __entry->work, __entry->normal_work, __entry->wq, 1164 __entry->work, __entry->normal_work, __entry->wq,
1165 __entry->func, __entry->ordered_func, __entry->ordered_free) 1165 __entry->func, __entry->ordered_func, __entry->ordered_free)
1166); 1166);
@@ -1233,7 +1233,7 @@ DECLARE_EVENT_CLASS(btrfs__workqueue,
1233 __entry->high = high; 1233 __entry->high = high;
1234 ), 1234 ),
1235 1235
1236 TP_printk_btrfs("name=%s%s, wq=%p", __get_str(name), 1236 TP_printk_btrfs("name=%s%s wq=%p", __get_str(name),
1237 __print_flags(__entry->high, "", 1237 __print_flags(__entry->high, "",
1238 {(WQ_HIGHPRI), "-high"}), 1238 {(WQ_HIGHPRI), "-high"}),
1239 __entry->wq) 1239 __entry->wq)
@@ -1288,7 +1288,7 @@ DECLARE_EVENT_CLASS(btrfs__qgroup_data_map,
1288 __entry->free_reserved = free_reserved; 1288 __entry->free_reserved = free_reserved;
1289 ), 1289 ),
1290 1290
1291 TP_printk_btrfs("rootid=%llu, ino=%lu, free_reserved=%llu", 1291 TP_printk_btrfs("rootid=%llu ino=%lu free_reserved=%llu",
1292 __entry->rootid, __entry->ino, __entry->free_reserved) 1292 __entry->rootid, __entry->ino, __entry->free_reserved)
1293); 1293);
1294 1294
@@ -1335,7 +1335,7 @@ DECLARE_EVENT_CLASS(btrfs__qgroup_rsv_data,
1335 __entry->op = op; 1335 __entry->op = op;
1336 ), 1336 ),
1337 1337
1338 TP_printk_btrfs("root=%llu, ino=%lu, start=%llu, len=%llu, reserved=%llu, op=%s", 1338 TP_printk_btrfs("root=%llu ino=%lu start=%llu len=%llu reserved=%llu op=%s",
1339 __entry->rootid, __entry->ino, __entry->start, __entry->len, 1339 __entry->rootid, __entry->ino, __entry->start, __entry->len,
1340 __entry->reserved, 1340 __entry->reserved,
1341 __print_flags((unsigned long)__entry->op, "", 1341 __print_flags((unsigned long)__entry->op, "",
@@ -1373,7 +1373,7 @@ DECLARE_EVENT_CLASS(btrfs__qgroup_delayed_ref,
1373 __entry->reserved = reserved; 1373 __entry->reserved = reserved;
1374 ), 1374 ),
1375 1375
1376 TP_printk_btrfs("root=%llu, reserved=%llu, op=free", 1376 TP_printk_btrfs("root=%llu reserved=%llu op=free",
1377 __entry->ref_root, __entry->reserved) 1377 __entry->ref_root, __entry->reserved)
1378); 1378);
1379 1379
@@ -1400,7 +1400,7 @@ DECLARE_EVENT_CLASS(btrfs_qgroup_extent,
1400 __entry->num_bytes = rec->num_bytes; 1400 __entry->num_bytes = rec->num_bytes;
1401 ), 1401 ),
1402 1402
1403 TP_printk_btrfs("bytenr = %llu, num_bytes = %llu", 1403 TP_printk_btrfs("bytenr=%llu num_bytes=%llu",
1404 (unsigned long long)__entry->bytenr, 1404 (unsigned long long)__entry->bytenr,
1405 (unsigned long long)__entry->num_bytes) 1405 (unsigned long long)__entry->num_bytes)
1406); 1406);
@@ -1442,8 +1442,8 @@ TRACE_EVENT(btrfs_qgroup_account_extent,
1442 __entry->nr_new_roots = nr_new_roots; 1442 __entry->nr_new_roots = nr_new_roots;
1443 ), 1443 ),
1444 1444
1445 TP_printk_btrfs("bytenr = %llu, num_bytes = %llu, nr_old_roots = %llu, " 1445 TP_printk_btrfs("bytenr=%llu num_bytes=%llu nr_old_roots=%llu "
1446 "nr_new_roots = %llu", 1446 "nr_new_roots=%llu",
1447 __entry->bytenr, 1447 __entry->bytenr,
1448 __entry->num_bytes, 1448 __entry->num_bytes,
1449 __entry->nr_old_roots, 1449 __entry->nr_old_roots,
@@ -1469,7 +1469,7 @@ TRACE_EVENT(qgroup_update_counters,
1469 __entry->cur_new_count = cur_new_count; 1469 __entry->cur_new_count = cur_new_count;
1470 ), 1470 ),
1471 1471
1472 TP_printk_btrfs("qgid = %llu, cur_old_count = %llu, cur_new_count = %llu", 1472 TP_printk_btrfs("qgid=%llu cur_old_count=%llu cur_new_count=%llu",
1473 __entry->qgid, 1473 __entry->qgid,
1474 __entry->cur_old_count, 1474 __entry->cur_old_count,
1475 __entry->cur_new_count) 1475 __entry->cur_new_count)