]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/symbol.h
Merge tag 'please-pull-misc-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / tools / perf / util / symbol.h
index b10d558a88032919c6249aa2417477022c3d71e2..699f7cbcfe720b3ac9ed4fbf0e110db1136aae35 100644 (file)
@@ -342,4 +342,26 @@ void arch__sym_update(struct symbol *s, GElf_Sym *sym);
 
 int arch__choose_best_symbol(struct symbol *syma, struct symbol *symb);
 
+/* structure containing an SDT note's info */
+struct sdt_note {
+       char *name;                     /* name of the note*/
+       char *provider;                 /* provider name */
+       bool bit32;                     /* whether the location is 32 bits? */
+       union {                         /* location, base and semaphore addrs */
+               Elf64_Addr a64[3];
+               Elf32_Addr a32[3];
+       } addr;
+       struct list_head note_list;     /* SDT notes' list */
+};
+
+int get_sdt_note_list(struct list_head *head, const char *target);
+int cleanup_sdt_note_list(struct list_head *sdt_notes);
+int sdt_notes__get_count(struct list_head *start);
+
+#define SDT_BASE_SCN ".stapsdt.base"
+#define SDT_NOTE_SCN  ".note.stapsdt"
+#define SDT_NOTE_TYPE 3
+#define SDT_NOTE_NAME "stapsdt"
+#define NR_ADDR 3
+
 #endif /* __PERF_SYMBOL */