...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package ptrace
18
19 import (
20 "github.com/go-logr/logr"
21
22 "github.com/chaos-mesh/chaos-mesh/pkg/mapreader"
23 )
24
25
26 func RegisterLogger(logger logr.Logger) {
27 panic("unimplemented")
28 }
29
30
31 type TracedProgram struct {
32 Entries []mapreader.Entry
33 }
34
35
36 func (p *TracedProgram) Pid() int {
37 panic("unimplemented")
38 }
39
40
41 func Trace(pid int) (*TracedProgram, error) {
42 panic("unimplemented")
43 }
44
45
46 func (p *TracedProgram) Detach() error {
47 panic("unimplemented")
48 }
49
50
51 func (p *TracedProgram) Protect() error {
52 panic("unimplemented")
53 }
54
55
56 func (p *TracedProgram) Restore() error {
57 panic("unimplemented")
58 }
59
60
61 func (p *TracedProgram) Wait() error {
62 panic("unimplemented")
63 }
64
65
66 func (p *TracedProgram) Step() error {
67 panic("unimplemented")
68 }
69
70
71 func (p *TracedProgram) Syscall(number uint64, args ...uint64) (uint64, error) {
72 panic("unimplemented")
73 }
74
75
76 func (p *TracedProgram) Mmap(length uint64, fd uint64) (uint64, error) {
77 panic("unimplemented")
78 }
79
80
81 func (p *TracedProgram) ReadSlice(addr uint64, size uint64) (*[]byte, error) {
82 panic("unimplemented")
83 }
84
85
86 func (p *TracedProgram) WriteSlice(addr uint64, buffer []byte) error {
87 panic("unimplemented")
88 }
89
90
91 func (p *TracedProgram) PtraceWriteSlice(addr uint64, buffer []byte) error {
92 panic("unimplemented")
93 }
94
95
96 func (p *TracedProgram) GetLibBuffer(entry *mapreader.Entry) (*[]byte, error) {
97 panic("unimplemented")
98 }
99
100
101 func (p *TracedProgram) MmapSlice(slice []byte) (*mapreader.Entry, error) {
102 panic("unimplemented")
103 }
104
105
106 func (p *TracedProgram) FindSymbolInEntry(symbolName string, entry *mapreader.Entry) (uint64, error) {
107 panic("unimplemented")
108 }
109
110
111 func (p *TracedProgram) WriteUint64ToAddr(addr uint64, value uint64) error {
112 panic("unimplemented")
113 }
114
115
116 func (p *TracedProgram) JumpToFakeFunc(originAddr uint64, targetAddr uint64) error {
117 panic("unimplemented")
118 }
119