| 1 |
#include "sys/sdt.h" |
| 2 |
.file "sdt_asm.c" |
| 3 |
#if defined __i386__ |
| 4 |
#define SAVE_SP mov %esp,%ebp |
| 5 |
#define RESTORE_SP mov %ebp,%esp |
| 6 |
#elif defined __x86_64__ |
| 7 |
#define SAVE_SP mov %rsp,%rbp |
| 8 |
#define RESTORE_SP mov %rbp,%rsp |
| 9 |
#endif |
| 10 |
.text |
| 11 |
.p2align 4,,15 |
| 12 |
.globl main |
| 13 |
.type main, @function |
| 14 |
main: |
| 15 |
.cfi_startproc |
| 16 |
#if defined __i386__ |
| 17 |
pushl %ebp |
| 18 |
movl %esp, %ebp |
| 19 |
movl $7, -4(%ebp) |
| 20 |
STAP_PROBE3(provider,memory,-4(%ebp),-8+4(%ebp),-8+3+1(%ebp)); |
| 21 |
#elif defined __x86_64__ |
| 22 |
pushq %rbp |
| 23 |
mov %rsp, %rbp |
| 24 |
movq $7, -8(%rbp) |
| 25 |
STAP_PROBE3(provider,memory,-8(%rbp),-12+4(%rbp),-12+3+1(%rbp)); |
| 26 |
#endif |
| 27 |
#if defined __i386__ || defined __x86_64__ |
| 28 |
mov $0x10203040, %eax |
| 29 |
STAP_PROBE4(provider,a,%ah,%al,%ax,%eax); |
| 30 |
mov $0x11213141, %ebx |
| 31 |
STAP_PROBE4(provider,b,%bh,%bl,%bx,%ebx); |
| 32 |
mov $0x12223242, %ecx |
| 33 |
STAP_PROBE4(provider,c,%ch,%cl,%cx,%ecx); |
| 34 |
mov $0x13233343, %edx |
| 35 |
STAP_PROBE4(provider,d,%dh,%dl,%dx,%edx); |
| 36 |
mov $0x14243444, %esi |
| 37 |
STAP_PROBE3(provider,si,%sil,%si,%esi); |
| 38 |
mov $0x15253545, %edi |
| 39 |
STAP_PROBE3(provider,di,%dil,%di,%edi); |
| 40 |
mov $0x16263646, %ebp |
| 41 |
STAP_PROBE2(provider,bp,%bp,%ebp); |
| 42 |
SAVE_SP |
| 43 |
mov $0x17273747, %esp |
| 44 |
STAP_PROBE2(provider,sp,%sp,%esp); |
| 45 |
RESTORE_SP |
| 46 |
#endif |
| 47 |
#if defined __x86_64__ |
| 48 |
mov $0x1020304010203040, %rax |
| 49 |
STAP_PROBE1(provider,rax,%rax); |
| 50 |
mov $0x1121314111213141, %rbx |
| 51 |
STAP_PROBE1(provider,rbx,%rbx); |
| 52 |
mov $0x1222324212223242, %rcx |
| 53 |
STAP_PROBE1(provider,rcx,%rcx); |
| 54 |
mov $0x1323334313233343, %rdx |
| 55 |
STAP_PROBE1(provider,rdx,%rdx); |
| 56 |
mov $0x1424344414243444, %rsi |
| 57 |
STAP_PROBE1(provider,rsi,%rsi); |
| 58 |
mov $0x1525354515253545, %rdi |
| 59 |
STAP_PROBE1(provider,rdi,%rdi); |
| 60 |
mov $0x1626364616263646, %rbp |
| 61 |
STAP_PROBE1(provider,rbp,%rbp); |
| 62 |
SAVE_SP |
| 63 |
mov $0x1727374717273747, %rsp |
| 64 |
STAP_PROBE1(provider,rsp,%rsp); |
| 65 |
RESTORE_SP |
| 66 |
mov $0x1828384818283848, %r8 |
| 67 |
STAP_PROBE4(provider,r8,%r8b,%r8w,%r8d,%r8); |
| 68 |
mov $0x1929394919293949, %r9 |
| 69 |
STAP_PROBE4(provider,r9,%r9b,%r9w,%r9d,%r9); |
| 70 |
mov $0x1a2a3a4a1a2a3a4a, %r10 |
| 71 |
STAP_PROBE4(provider,r10,%r10b,%r10w,%r10d,%r10); |
| 72 |
mov $0x1b2b3b4b1b2b3b4b, %r11 |
| 73 |
STAP_PROBE4(provider,r11,%r11b,%r11w,%r11d,%r11); |
| 74 |
mov $0x1c2c3c4c1c2c3c4c, %r12 |
| 75 |
STAP_PROBE4(provider,r12,%r12b,%r12w,%r12d,%r12); |
| 76 |
mov $0x1d2d3d4d1d2d3d4d, %r13 |
| 77 |
STAP_PROBE4(provider,r13,%r13b,%r13w,%r13d,%r13); |
| 78 |
mov $0x1e2e3e4e1e2e3e4e, %r14 |
| 79 |
STAP_PROBE4(provider,r14,%r14b,%r14w,%r14d,%r14); |
| 80 |
mov $0x1f2f3f4f1f2f3f4f, %r15 |
| 81 |
STAP_PROBE4(provider,r15,%r15b,%r15w,%r15d,%r15); |
| 82 |
#endif |
| 83 |
#if defined __i386__ |
| 84 |
mov $0, %eax |
| 85 |
pop %ebp |
| 86 |
#elif defined __x86_64__ |
| 87 |
mov $0, %rax |
| 88 |
pop %rbp |
| 89 |
#endif |
| 90 |
ret |
| 91 |
.cfi_endproc |