Aggregation APIs
-
void dtrace_aggregate_clear(dtrace_hdl_t *dtp)
-
Clears the aggregation data being stored in user space in the consumer. See
dtrace_aggregate_clear
(3DTRACE). -
int dtrace_aggregate_snap(dtrace_hdl_t *dtp)
-
Transfers data in the (in-kernel) aggregation buffers to user space. The data is not processed at this point, it is stored in the consumer. See
dtrace_aggregate_snap
(3DTRACE). -
int dtrace_aggregate_print(dtrace_hdl_t *dtp, FILE *fp, dtrace_aggregate_walk_f *func)
-
Prints DTrace aggregate data. See
dtrace_aggregate_print
(3DTRACE). -
int dtrace_aggregate_walk(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data with no sorting. See
dtrace_aggregate_walk
(3DTRACE). -
int dtrace_aggregate_walk_joined(dtrace_hdl_t *dtp, dtrace_aggvarid_t *aggvars, int naggvars, dtrace_aggregate_walk_joined_f *func, void *arg)
-
Processes multiple aggregations at the same time, similar to a database join operation. See
dtrace_aggregate_walk_joined
(3DTRACE). -
int dtrace_aggregate_walk_sorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data as described in
dtrace_aggregate_walk
()) sorted first by variable name (if there are multiple aggregations) and within each aggregation by value. Seedtrace_aggregate_walk_sorted
(3DTRACE). -
int dtrace_aggregate_walk_keysorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data (as described in
dtrace_aggregate_walk
()) sorted first by variable name (if there are multiple aggregations) and within each aggregation by key. Seedtrace_aggregate_walk_keysorted
(3DTRACE). -
int dtrace_aggregate_walk_valsorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data (as described in
dtrace_aggregate_walk
()) sorted first by variable name (if there are multiple aggregations) and within each aggregation by value. Seedtrace_aggregate_walk_valsorted
(3DTRACE). -
int dtrace_aggregate_walk_keyvarsorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data (as described in
dtrace_aggregate_walk
()) sorted first by key. When the same key occurs in two different aggregations, it sorts by aggregation ID. Seedtrace_aggregate_walk_keyvarsorted
(3DTRACE). -
int dtrace_aggregate_walk_valvarsorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data as described in
dtrace_aggregate_walk
() sorted first by value and then by variable or aggregation ID. Seedtrace_aggregate_walk_valvarsorted
(3DTRACE). -
int dtrace_aggregate_walk_keyrevsorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data (as described in
dtrace_aggregate_walk
()) in the reverse order as thedtrace_aggregate_walk_keysorted
() function. Specifically, it will sort in reverse order by variable or aggregation ID and then in reverse order by key. Seedtrace_aggregate_walk_keyrevsorted
(3DTRACE). -
int dtrace_aggregate_walk_valrevsorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Processes the aggregate data (as described in
dtrace_aggregate_walk
()) in the reverse order as thedtrace_aggregate_walk_valsorted
() function. Specifically, it will sort in reverse order by variable or aggregation ID and then in reverse order by value. Seedtrace_aggregate_walk_valrevsorted
(3DTRACE). -
int dtrace_aggregate_walk_keyvarrevsorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Process the aggregate data (as described in
dtrace_aggregate_walk
()) in the reverse order as thedtrace_aggregate_walk_keyvarsorted
() function. Specifically, it will sort in reverse order by key. and then, in the case of collisions, in reverse order by variable or aggregation ID Seedtrace_aggregate_walk_keyvarrevsorted
(3DTRACE). -
int dtrace_aggregate_walk_valvarrevsorted(dtrace_hdl_t *dtp, dtrace_aggregate_f *func, void *arg)
-
Process the aggregate data (as described under
dtrace_aggregate_walk
()) in the reverse order as thedtrace_aggregate_walk_valvarsorted
() function. Specifically, it will sort in reverse order by value and then in reverse order by variable or aggregation ID. Seedtrace_aggregate_walk_valrevsorted
(3DTRACE).