perf_event: Provide vmalloc() based mmap() backing
[safe/jmp/linux-2.6] / kernel / trace / trace_stat.h
index 202274c..8f03914 100644 (file)
@@ -12,12 +12,14 @@ struct tracer_stat {
        /* The name of your stat file */
        const char              *name;
        /* Iteration over statistic entries */
-       void                    *(*stat_start)(void);
+       void                    *(*stat_start)(struct tracer_stat *trace);
        void                    *(*stat_next)(void *prev, int idx);
        /* Compare two entries for stats sorting */
        int                     (*stat_cmp)(void *p1, void *p2);
        /* Print a stat entry */
        int                     (*stat_show)(struct seq_file *s, void *p);
+       /* Release an entry */
+       void                    (*stat_release)(void *stat);
        /* Print the headers of your stat entries */
        int                     (*stat_headers)(struct seq_file *s);
 };