Lines Matching +full:average +full:- +full:samples
1 /* SPDX-License-Identifier: GPL-2.0 */
150 return which < PERCENT_MAX ? data->percent[which] : -1; in annotation_data__percent()
179 return dl->ops.target.offset_avail && !dl->ops.target.outside; in disasm_line__has_local_offset()
207 /* save data type info keyed by al->offset */
226 * struct sym_hist - symbol histogram information for an event
228 * @nr_samples: Total number of samples.
237 * struct cyc_hist - (CPU) cycle histogram for a basic block
245 * @num: Number of samples for the longest basic block.
246 * @num_aggr: Total number of samples for this address.
276 * struct annotated_source - symbols with hits have this attached as in annotation
280 * of samples and period.
281 * @nr_histograms: This may not be the same as evsel->evlist->core.nr_entries if
284 * sets src->nr_histograms to evsel->nr_members.
285 * @samples: Hash map of sym_hist_entry. Keyed by event index and offset in symbol.
303 struct hashmap *samples; member
329 * struct annotated_branch - basic block and IPC information for a symbol.
336 * @max_coverage: Maximum number of covered basic block (used for block-range).
340 * and cycles information. annotation__compute_ipc() calculates average IPC
373 if (notes->branch && annotate_opts.show_minmax_cycle) in annotation__cycles_width()
376 return notes->branch ? ANNOTATION__IPC_WIDTH + ANNOTATION__CYCLES_WIDTH : 0; in annotation__cycles_width()
381 return (symbol_conf.show_total_period ? 12 : 8) * notes->src->nr_events; in annotation__pcnt_width()
386 return annotate_opts.hide_src_code && al->offset == -1; in annotation_line__filter()
400 return &src->histograms[evsel->core.idx]; in annotated_source__histogram()
406 return annotated_source__histogram(notes->src, evsel); in annotation__histogram()
413 long key = offset << 16 | evsel->core.idx; in annotated_source__hist_entry()
415 if (!hashmap__find(src->samples, key, &entry)) in annotated_source__hist_entry()
422 return (void *)sym - symbol_conf.priv_size; in symbol__annotation()
459 __SYMBOL_ANNOTATE_ERRNO__START = -10000,
498 * struct annotated_op_loc - Location info of instruction operand
536 * struct annotated_insn_loc - Location info of instruction
544 for (i = INSN_OP_SOURCE, op_loc = &(insn_loc)->ops[i]; \
563 /* Calculate PC-relative address */
568 * struct annotated_basic_block - Basic block of instructions