/usr/share/systemtap/runtime/linux/uprobes-common.h is in systemtap-common 2.9-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | /* -*- linux-c -*-
* Copyright (C) 2010, 2013 Red Hat Inc.
*
* This file is part of systemtap, and is free software. You can
* redistribute it and/or modify it under the terms of the GNU General
* Public License (GPL); either version 2, or (at your option) any
* later version.
*/
#ifndef _UPROBE_COMMON_H_
#define _UPROBE_COMMON_H_
struct stap_uprobe {
union { struct uprobe up; struct uretprobe urp; };
int spec_index; /* index into stap_uprobe_specs; <0 == free && unregistered */
unsigned long sdt_sem_address;
};
struct stap_uprobe_tf {
struct stap_task_finder_target finder;
const char *pathname;
};
struct stap_uprobe_spec {
unsigned tfi;
unsigned return_p:1;
unsigned long address;
unsigned long sdt_sem_offset;
// List of perf counters used by each probe
// This list is an index into struct stap_perf_probe,
long perf_counters_dim;
long *perf_counters;
const struct stap_probe * const probe;
};
static int stap_uprobe_process_found (struct stap_task_finder_target *tgt, struct task_struct *tsk, int register_p, int process_p);
static int stap_uprobe_mmap_found (struct stap_task_finder_target *tgt, struct task_struct *tsk, char *path, struct dentry *dentry, unsigned long addr, unsigned long length, unsigned long offset, unsigned long vm_flags);
static int stap_uprobe_munmap_found (struct stap_task_finder_target *tgt, struct task_struct *tsk, unsigned long addr, unsigned long length);
static int stap_uprobe_process_munmap (struct stap_task_finder_target *tgt, struct task_struct *tsk, int register_p, int process_p);
#endif /* _UPROBE_COMMON_H_ */
|