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