Lines Matching refs:block_fmt

169 	struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt);  in block_column_header()  local
171 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_column_header()
172 block_fmt->header); in block_column_header()
179 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_column_width() local
181 return block_fmt->width; in block_column_width()
199 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_total_cycles_pct_entry() local
203 if (block_fmt->total_cycles) in block_total_cycles_pct_entry()
204 ratio = (double)bi->cycles_aggr / (double)block_fmt->total_cycles; in block_total_cycles_pct_entry()
206 return color_pct(hpp, block_fmt->width, 100.0 * ratio); in block_total_cycles_pct_entry()
213 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_total_cycles_pct_sort() local
218 if (block_fmt->total_cycles) { in block_total_cycles_pct_sort()
220 (double)block_fmt->total_cycles) * 100000.0; in block_total_cycles_pct_sort()
222 (double)block_fmt->total_cycles) * 100000.0; in block_total_cycles_pct_sort()
242 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_cycles_lbr_entry() local
248 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_cycles_lbr_entry()
255 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_cycles_pct_entry() local
260 if (block_fmt->block_cycles && bi->num_aggr) { in block_cycles_pct_entry()
262 ratio = (double)avg / (double)block_fmt->block_cycles; in block_cycles_pct_entry()
265 return color_pct(hpp, block_fmt->width, 100.0 * ratio); in block_cycles_pct_entry()
272 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_avg_cycles_entry() local
279 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_avg_cycles_entry()
286 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_range_entry() local
311 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, buf); in block_range_entry()
317 struct block_fmt *block_fmt = container_of(fmt, struct block_fmt, fmt); in block_dso_entry() local
321 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_dso_entry()
325 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_dso_entry()
329 static void init_block_header(struct block_fmt *block_fmt) in init_block_header() argument
331 struct perf_hpp_fmt *fmt = &block_fmt->fmt; in init_block_header()
333 BUG_ON(block_fmt->idx >= PERF_HPP_REPORT__BLOCK_MAX_INDEX); in init_block_header()
335 block_fmt->header = block_columns[block_fmt->idx].name; in init_block_header()
336 block_fmt->width = block_columns[block_fmt->idx].width; in init_block_header()
342 static void hpp_register(struct block_fmt *block_fmt, int idx, in hpp_register() argument
345 struct perf_hpp_fmt *fmt = &block_fmt->fmt; in hpp_register()
347 block_fmt->idx = idx; in hpp_register()
376 init_block_header(block_fmt); in hpp_register()
381 struct block_fmt *block_fmts, in register_block_columns()
388 static void init_block_hist(struct block_hist *bh, struct block_fmt *block_fmts, in init_block_hist()