summaryrefslogtreecommitdiff
path: root/tracker.h
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2011-06-02 08:38:58 +0300
committerPauli Nieminen <suokkos@gmail.com>2011-06-02 20:20:56 +0300
commit583ad0bc5b8ff8414b4628b1b57981e28b2c0a6f (patch)
tree72350cd8b726bab38388cb0d87091902f3c62be5 /tracker.h
parent8bf442213dbda897b0a7671090b6cbea87bb3c8a (diff)
Imported Upstream version 1.1.6
Diffstat (limited to 'tracker.h')
-rw-r--r--tracker.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/tracker.h b/tracker.h
new file mode 100644
index 0000000..098f4a1
--- /dev/null
+++ b/tracker.h
@@ -0,0 +1,29 @@
+#include <stdint.h>
+#include "profile.h"
+
+typedef struct tracker_t tracker_t;
+
+tracker_t *tracker_new (void);
+void tracker_free (tracker_t *);
+
+void tracker_add_process (tracker_t *tracker,
+ pid_t pid,
+ const char *command_line);
+void tracker_add_fork (tracker_t *tracker,
+ pid_t pid,
+ pid_t child_pid);
+void tracker_add_exit (tracker_t *tracker,
+ pid_t pid);
+void tracker_add_map (tracker_t * tracker,
+ pid_t pid,
+ uint64_t start,
+ uint64_t end,
+ uint64_t offset,
+ uint64_t inode,
+ const char *filename);
+void tracker_add_sample (tracker_t *tracker,
+ pid_t pid,
+ uint64_t *ips,
+ int n_ips);
+
+Profile *tracker_create_profile (tracker_t *tracker);