-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbgd_flow_122.d
72 lines (60 loc) · 1.74 KB
/
dbgd_flow_122.d
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
/*
Version: v1.1
Author: Nenad Noveljic
See also: http://nenadnoveljic.com/blog/event-propagation-in-oracle-12-2
Event propagation tracing for Oracle 12.2
*/
#pragma D option dynvarsize=64m
#pragma D option bufsize=64m
#pragma D option aggsize=64m
#pragma D option quiet
pid$target::dbgdSyncEventGrpsDirect:entry
{
printf("-----------\n");
this->first_ptr_val = *(uint64_t *)copyin(arg1+16,16) ;
this->second_ptr_adr = this->first_ptr_val + 184 ;
this->second_ptr_val = *(uint64_t *)copyin(this->second_ptr_adr,16) ;
printf("%s arg1 = %x \n1st ptr *(arg1+0x10): *%x = %x\n2nd ptr *(1st_ptr+0xb8): *%x = %x \n",
probefunc, arg1, arg1+16, this->first_ptr_val,
this->second_ptr_adr, this->second_ptr_val
);
}
pid$target::dbgdLinkEvent:entry
{
printf("-----------\n");
printf("%s entry arg2:%x arg3:%x\n",probefunc,arg2,arg3);
}
pid$target::dbgdSetEvents:entry
{
printf("-----------\n");
self->SetEvents_arg2 = arg2 ;
self->SetEvents_arg2_0xa8 = arg2 + 0xa8 ;
printf("%s entry\narg2=%x \n",
probefunc,arg2
);
}
pid$target::dbgdSetEvents:return
{
printf("-----------\n");
printf("%s return \n*arg2: *(%x) = %x \n",
probefunc,self->SetEvents_arg2,
*(uint64_t *)copyin(self->SetEvents_arg2,8)
);
}
pid$target::dbgdCopyEventNode:entry
{
printf("-----------\n");
printf("dbgdCopyEventNode source: arg2 = %x \n*(arg2+0x28): *(%x) = %x\n",
arg2,arg2+40,
*(int *)copyin(arg2+40,1)
);
}
pid$target::dbgdCopyEventNode:return
{
this->ret_value = *(uint64_t *)copyin(arg1,8) ;
this->ptr_mask = this->ret_value + 40 ;
printf("dbgdCopyEventNode destination: *ret_val = %x \n*ptr_mask = *ret_val+0x28: *(%x) = %x\n",
this->ret_value, this->ptr_mask,
*(int *)copyin(this->ptr_mask,1)
);
}