1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
17 s64 cycles_spark
[NUM_SPARKS
];
27 struct perf_hpp_fmt fmt
;
36 PERF_HPP_REPORT__BLOCK_TOTAL_CYCLES_PCT
,
37 PERF_HPP_REPORT__BLOCK_LBR_CYCLES
,
38 PERF_HPP_REPORT__BLOCK_CYCLES_PCT
,
39 PERF_HPP_REPORT__BLOCK_AVG_CYCLES
,
40 PERF_HPP_REPORT__BLOCK_RANGE
,
41 PERF_HPP_REPORT__BLOCK_DSO
,
42 PERF_HPP_REPORT__BLOCK_BRANCH_COUNTER
,
43 PERF_HPP_REPORT__BLOCK_MAX_INDEX
47 struct block_hist hist
;
49 struct block_fmt fmts
[PERF_HPP_REPORT__BLOCK_MAX_INDEX
];
53 void block_info__delete(struct block_info
*bi
);
55 int64_t __block_info__cmp(struct hist_entry
*left
, struct hist_entry
*right
);
57 int64_t block_info__cmp(struct perf_hpp_fmt
*fmt __maybe_unused
,
58 struct hist_entry
*left
, struct hist_entry
*right
);
60 int block_info__process_sym(struct hist_entry
*he
, struct block_hist
*bh
,
61 u64
*block_cycles_aggr
, u64 total_cycles
,
62 unsigned int br_cntr_nr
);
64 struct block_report
*block_info__create_report(struct evlist
*evlist
,
66 int *block_hpps
, int nr_hpps
,
69 void block_info__free_report(struct block_report
*reps
, int nr_reps
);
71 int report__browse_block_hists(struct block_hist
*bh
, float min_percent
,
72 struct evsel
*evsel
, struct perf_env
*env
);
74 float block_info__total_cycles_percent(struct hist_entry
*he
);
76 #endif /* __PERF_BLOCK_H */