-
Notifications
You must be signed in to change notification settings - Fork 2
/
maxblkid.xd
108 lines (96 loc) · 2.46 KB
/
maxblkid.xd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
BEGIN
{
obj = 8;
}
dmu_free_long_range_impl:entry
/args[1]->dn_object == obj/
{
dn = args[1];
stack();
printf("off=%u len=%u maxblkid=%u", args[2], args[3], dn->dn_maxblkid);
}
dmu_free_long_range:return
/entry->args[1] == obj/
{
printf("maxblkid=%u", dn->dn_maxblkid);
}
dnode_sync_free_range:return
{
this->dsfra = (dnode_sync_free_range_arg_t *)entry->args[0];
if (this->dsfra->dsfra_dnode->dn_object == obj) {
printf("txg=%u blkid=%u nblks=%u maxblkid=%u phys_maxblkid=%u",
this->dsfra->dsfra_tx->tx_txg,
entry->args[1], entry->args[2],
this->dsfra->dsfra_dnode->dn_maxblkid,
this->dsfra->dsfra_dnode->dn_phys->dn_maxblkid);
}
}
dnode_sync_free_range_impl:entry
/args[0]->dn_object == obj/
{
printf("dva=%x,%x blkid=%u nblks=%u",
args[0]->dn_phys->dn_blkptr[0].blk_dva[0].dva_word[0],
args[0]->dn_phys->dn_blkptr[0].blk_dva[0].dva_word[1],
args[1], args[2]);
}
free_children:entry
/args[0]->db.db_object == obj/
{
printf("lvl=%u blkid=%u blkid=%u nblks=%u",
args[0]->db_level,
args[0]->db_blkid,
args[1], args[2]);
}
dbuf_sync_indirect:entry
/args[0]->dr_dbuf->db.db_object == obj/
{
this->data = (blkptr_t *)args[0]->dr_dbuf->db_buf->b_data;
printf("lvl=%u blkid=%u bp[0]: dva[0]=%x,%x birth=%u",
args[0]->dr_dbuf->db_level,
args[0]->dr_dbuf->db_blkid,
this->data->blk_dva[0].dva_word[0],
this->data->blk_dva[0].dva_word[1],
this->data->blk_birth);
}
dbuf_read_impl:entry
/args[0]->db.db_object == obj/
{
printf("lvl=%u blkid=%u",
args[0]->db_level,
args[0]->db_blkid);
if (args[0]->db_blkptr != NULL) {
printf("dva[0]=%x,%x birth=%u",
args[0]->db_blkptr->blk_dva[0].dva_word[0],
args[0]->db_blkptr->blk_dva[0].dva_word[1],
args[0]->db_blkptr->blk_birth);
}
}
dbuf_read_impl:return
/entry->args[0]->db.db_object == obj/
{
this->data = (blkptr_t *)entry->args[0]->db_buf->b_data;
printf("bp[0]: dva[0]=%x,%x birth=%u",
this->data->blk_dva[0].dva_word[0],
this->data->blk_dva[0].dva_word[1],
this->data->blk_birth);
}
dbuf_hold_impl:entry
/args[0]->dn_object == obj/
{
printf("lvl=%u blkid=%u fail_sparse=%u",
args[1], args[2], args[3]);
stack();
}
dbuf_create:entry
/args[0]->dn_object == obj/
{
printf("lvl=%u blkid=%u blkptr=%p",
args[1], args[2], args[4]);
if (args[4] != NULL) {
printf("bp: dva[0]=%x,%x birth=%u",
args[4]->blk_dva[0].dva_word[0],
args[4]->blk_dva[0].dva_word[1],
args[4]->blk_birth);
}
stack();
}