.. | .. |
---|
217 | 217 | |
---|
218 | 218 | /* Note that we don't verify it, since the code does not come from user space */ |
---|
219 | 219 | static int |
---|
220 | | -process_fetch_insn(struct fetch_insn *code, struct pt_regs *regs, void *dest, |
---|
| 220 | +process_fetch_insn(struct fetch_insn *code, void *rec, void *dest, |
---|
221 | 221 | void *base) |
---|
222 | 222 | { |
---|
| 223 | + struct pt_regs *regs = rec; |
---|
223 | 224 | unsigned long val; |
---|
224 | 225 | |
---|
225 | 226 | /* 1st stage: get value from context */ |
---|
.. | .. |
---|
1421 | 1422 | |
---|
1422 | 1423 | int bpf_get_uprobe_info(const struct perf_event *event, u32 *fd_type, |
---|
1423 | 1424 | const char **filename, u64 *probe_offset, |
---|
1424 | | - bool perf_type_tracepoint) |
---|
| 1425 | + u64 *probe_addr, bool perf_type_tracepoint) |
---|
1425 | 1426 | { |
---|
1426 | 1427 | const char *pevent = trace_event_name(event->tp_event); |
---|
1427 | 1428 | const char *group = event->tp_event->class->system; |
---|
.. | .. |
---|
1438 | 1439 | : BPF_FD_TYPE_UPROBE; |
---|
1439 | 1440 | *filename = tu->filename; |
---|
1440 | 1441 | *probe_offset = tu->offset; |
---|
| 1442 | + *probe_addr = 0; |
---|
1441 | 1443 | return 0; |
---|
1442 | 1444 | } |
---|
1443 | 1445 | #endif /* CONFIG_PERF_EVENTS */ |
---|