perf probe: Add lazy line matching support
[safe/jmp/linux-2.6] / tools / perf / util / probe-finder.h
index 75a660d..d1a6517 100644 (file)
@@ -21,6 +21,7 @@ struct probe_point {
        /* Inputs */
        char                    *file;                  /* File name */
        int                     line;                   /* Line number */
+       char                    *lazy_line;             /* Lazy line pattern */
 
        char                    *function;              /* Function name */
        int                     offset;                 /* Offset bytes */
@@ -74,6 +75,7 @@ struct probe_finder {
        const char              *var;           /* Current variable name */
        char                    *buf;           /* Current output buffer */
        int                     len;            /* Length of output buffer */
+       struct list_head        lcache;         /* Line cache for lazy match */
 };
 
 struct line_finder {