X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fstats.h;h=a5aca18a81e2301d54e4d4542d8df91bf3ca0e77;hb=b9ce0bad7daf7c0a2333c91fdb1e35d602afe17f;hp=837282c13c5e7e5a838e54e3f3d21b77d5162f2d;hpb=90e19f82bca635a1ba52b8a50b64e484bd19c14f;p=lttv.git diff --git a/lttv/lttv/stats.h b/lttv/lttv/stats.h index 837282c1..a5aca18a 100644 --- a/lttv/lttv/stats.h +++ b/lttv/lttv/stats.h @@ -12,13 +12,15 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. */ #ifndef STATS_H #define STATS_H +#error "stats not supported." + #include #include @@ -168,7 +170,7 @@ typedef struct _LttvTraceStatsClass LttvTraceStatsClass; typedef struct _LttvTracefileStats LttvTracefileStats; typedef struct _LttvTracefileStatsClass LttvTracefileStatsClass; - +typedef struct _LttvCPUStats LttvCPUStats; // Hook wrapper. call_data is a trace context. gboolean lttv_stats_hook_add_event_hooks(void *hook_data, void *call_data); @@ -210,6 +212,12 @@ struct _LttvTracesetStatsClass { GType lttv_traceset_stats_get_type (void); +struct _LttvCPUStats { + LttvAttribute *current_events_tree; + LttvAttribute *current_event_types_tree; + LttvTraceStats *tcs; + guint cpu; +}; #define LTTV_TRACE_STATS_TYPE (lttv_trace_stats_get_type ()) #define LTTV_TRACE_STATS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LTTV_TRACE_STATS_TYPE, LttvTraceStats)) @@ -222,6 +230,7 @@ struct _LttvTraceStats { LttvTraceState parent; LttvAttribute *stats; + LttvCPUStats *cpu_stats; /* Array indexed by CPU */ }; struct _LttvTraceStatsClass { @@ -241,9 +250,7 @@ GType lttv_trace_stats_get_type (void); struct _LttvTracefileStats { LttvTracefileState parent; - LttvAttribute *stats; - LttvAttribute *current_events_tree; - LttvAttribute *current_event_types_tree; + LttvCPUStats *cpu_stats; /* "weak" reference */ }; struct _LttvTracefileStatsClass {