perf probe: Rename probe finder functions
[deliverable/linux.git] / tools / perf / util / probe-finder.h
index a4086aaddb73da2458047d13209a897e7faec172..b2a25241135af6701ac0053690fadb846678570b 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _PROBE_FINDER_H
 #define _PROBE_FINDER_H
 
+#include "util.h"
+
 #define MAX_PATH_LEN            256
 #define MAX_PROBE_BUFFER       1024
 #define MAX_PROBES              128
@@ -32,8 +34,26 @@ struct probe_point {
        char                    *probes[MAX_PROBES];    /* Output buffers (will be allocated)*/
 };
 
+/* Line number container */
+struct line_node {
+       struct list_head        list;
+       unsigned int            line;
+};
+
+/* Line range */
+struct line_range {
+       char                    *file;                  /* File name */
+       char                    *function;              /* Function name */
+       unsigned int            start;                  /* Start line number */
+       unsigned int            end;                    /* End line number */
+       unsigned int            offset;                 /* Start line offset */
+       char                    *path;                  /* Real path name */
+       struct list_head        line_list;              /* Visible lines */
+};
+
 #ifndef NO_LIBDWARF
-extern int find_probepoint(int fd, struct probe_point *pp);
+extern int find_probe_point(int fd, struct probe_point *pp);
+extern int find_line_range(int fd, struct line_range *lr);
 
 /* Workaround for undefined _MIPS_SZLONG bug in libdwarf.h: */
 #ifndef _MIPS_SZLONG
@@ -60,6 +80,19 @@ struct probe_finder {
        char                    *buf;                   /* Current output buffer */
        int                     len;                    /* Length of output buffer */
 };
+
+struct line_finder {
+       struct line_range       *lr;                    /* Target line range */
+
+       Dwarf_Unsigned          fno;                    /* File number */
+       Dwarf_Unsigned          lno_s;                  /* Start line number */
+       Dwarf_Unsigned          lno_e;                  /* End line number */
+       Dwarf_Addr              addr_s;                 /* Start address */
+       Dwarf_Addr              addr_e;                 /* End address */
+       Dwarf_Die               cu_die;                 /* Current CU */
+       int                     found;
+};
+
 #endif /* NO_LIBDWARF */
 
 #endif /*_PROBE_FINDER_H */
This page took 0.026501 seconds and 5 git commands to generate.