probe-finder.h (cf6eb489e5c04c8f8d5fd7bf90b8346c987688bc) | probe-finder.h (fb8c5a56c7ddbc2b0d2ee7a8da60fe1355f75141) |
---|---|
1#ifndef _PROBE_FINDER_H 2#define _PROBE_FINDER_H 3 4#include <stdbool.h> 5#include "util.h" 6#include "probe-event.h" 7 8#define MAX_PATH_LEN 256 --- 16 unchanged lines hidden (view full) --- 25extern int find_perf_probe_point(int fd, unsigned long addr, 26 struct perf_probe_point *ppt); 27 28/* Find a line range */ 29extern int find_line_range(int fd, struct line_range *lr); 30 31/* Find available variables */ 32extern int find_available_vars_at(int fd, struct perf_probe_event *pev, | 1#ifndef _PROBE_FINDER_H 2#define _PROBE_FINDER_H 3 4#include <stdbool.h> 5#include "util.h" 6#include "probe-event.h" 7 8#define MAX_PATH_LEN 256 --- 16 unchanged lines hidden (view full) --- 25extern int find_perf_probe_point(int fd, unsigned long addr, 26 struct perf_probe_point *ppt); 27 28/* Find a line range */ 29extern int find_line_range(int fd, struct line_range *lr); 30 31/* Find available variables */ 32extern int find_available_vars_at(int fd, struct perf_probe_event *pev, |
33 struct variable_list **vls, int max_points); | 33 struct variable_list **vls, int max_points, 34 bool externs); |
34 35#include <dwarf.h> 36#include <libdw.h> 37#include <version.h> 38 39struct probe_finder { 40 struct perf_probe_event *pev; /* Target probe event */ 41 --- 23 unchanged lines hidden (view full) --- 65 int max_tevs; /* Max number of trace events */ 66}; 67 68struct available_var_finder { 69 struct probe_finder pf; 70 struct variable_list *vls; /* Found variable lists */ 71 int nvls; /* Number of variable lists */ 72 int max_vls; /* Max no. of variable lists */ | 35 36#include <dwarf.h> 37#include <libdw.h> 38#include <version.h> 39 40struct probe_finder { 41 struct perf_probe_event *pev; /* Target probe event */ 42 --- 23 unchanged lines hidden (view full) --- 66 int max_tevs; /* Max number of trace events */ 67}; 68 69struct available_var_finder { 70 struct probe_finder pf; 71 struct variable_list *vls; /* Found variable lists */ 72 int nvls; /* Number of variable lists */ 73 int max_vls; /* Max no. of variable lists */ |
74 bool externs; /* Find external vars too */ 75 bool child; /* Search child scopes */ |
|
73}; 74 75struct line_finder { 76 struct line_range *lr; /* Target line range */ 77 78 const char *fname; /* File name */ 79 int lno_s; /* Start line number */ 80 int lno_e; /* End line number */ 81 Dwarf_Die cu_die; /* Current CU */ 82 int found; 83}; 84 85#endif /* DWARF_SUPPORT */ 86 87#endif /*_PROBE_FINDER_H */ | 76}; 77 78struct line_finder { 79 struct line_range *lr; /* Target line range */ 80 81 const char *fname; /* File name */ 82 int lno_s; /* Start line number */ 83 int lno_e; /* End line number */ 84 Dwarf_Die cu_die; /* Current CU */ 85 int found; 86}; 87 88#endif /* DWARF_SUPPORT */ 89 90#endif /*_PROBE_FINDER_H */ |