diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/trace_events.h | 3 | ||||
| -rw-r--r-- | include/linux/uprobes.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h index 78a010e19ed4..4130a5497d40 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h | |||
| @@ -575,7 +575,8 @@ extern int bpf_get_kprobe_info(const struct perf_event *event, | |||
| 575 | bool perf_type_tracepoint); | 575 | bool perf_type_tracepoint); |
| 576 | #endif | 576 | #endif |
| 577 | #ifdef CONFIG_UPROBE_EVENTS | 577 | #ifdef CONFIG_UPROBE_EVENTS |
| 578 | extern int perf_uprobe_init(struct perf_event *event, bool is_retprobe); | 578 | extern int perf_uprobe_init(struct perf_event *event, |
| 579 | unsigned long ref_ctr_offset, bool is_retprobe); | ||
| 579 | extern void perf_uprobe_destroy(struct perf_event *event); | 580 | extern void perf_uprobe_destroy(struct perf_event *event); |
| 580 | extern int bpf_get_uprobe_info(const struct perf_event *event, | 581 | extern int bpf_get_uprobe_info(const struct perf_event *event, |
| 581 | u32 *fd_type, const char **filename, | 582 | u32 *fd_type, const char **filename, |
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index bb9d2084af03..103a48a48872 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h | |||
| @@ -123,6 +123,7 @@ extern unsigned long uprobe_get_swbp_addr(struct pt_regs *regs); | |||
| 123 | extern unsigned long uprobe_get_trap_addr(struct pt_regs *regs); | 123 | extern unsigned long uprobe_get_trap_addr(struct pt_regs *regs); |
| 124 | extern int uprobe_write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr, uprobe_opcode_t); | 124 | extern int uprobe_write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long vaddr, uprobe_opcode_t); |
| 125 | extern int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); | 125 | extern int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); |
| 126 | extern int uprobe_register_refctr(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc); | ||
| 126 | extern int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool); | 127 | extern int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool); |
| 127 | extern void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); | 128 | extern void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); |
| 128 | extern int uprobe_mmap(struct vm_area_struct *vma); | 129 | extern int uprobe_mmap(struct vm_area_struct *vma); |
| @@ -160,6 +161,10 @@ uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) | |||
| 160 | { | 161 | { |
| 161 | return -ENOSYS; | 162 | return -ENOSYS; |
| 162 | } | 163 | } |
| 164 | static inline int uprobe_register_refctr(struct inode *inode, loff_t offset, loff_t ref_ctr_offset, struct uprobe_consumer *uc) | ||
| 165 | { | ||
| 166 | return -ENOSYS; | ||
| 167 | } | ||
| 163 | static inline int | 168 | static inline int |
| 164 | uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add) | 169 | uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool add) |
| 165 | { | 170 | { |
