~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/perf/util/block-info.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef __PERF_BLOCK_H
  3 #define __PERF_BLOCK_H
  4 
  5 #include <linux/types.h>
  6 #include "hist.h"
  7 #include "symbol.h"
  8 #include "sort.h"
  9 #include "ui/ui.h"
 10 
 11 struct block_info {
 12         struct symbol           *sym;
 13         u64                     start;
 14         u64                     end;
 15         u64                     cycles;
 16         u64                     cycles_aggr;
 17         s64                     cycles_spark[NUM_SPARKS];
 18         u64                     total_cycles;
 19         int                     num;
 20         int                     num_aggr;
 21 };
 22 
 23 struct block_fmt {
 24         struct perf_hpp_fmt     fmt;
 25         int                     idx;
 26         int                     width;
 27         const char              *header;
 28         u64                     total_cycles;
 29         u64                     block_cycles;
 30 };
 31 
 32 enum {
 33         PERF_HPP_REPORT__BLOCK_TOTAL_CYCLES_PCT,
 34         PERF_HPP_REPORT__BLOCK_LBR_CYCLES,
 35         PERF_HPP_REPORT__BLOCK_CYCLES_PCT,
 36         PERF_HPP_REPORT__BLOCK_AVG_CYCLES,
 37         PERF_HPP_REPORT__BLOCK_RANGE,
 38         PERF_HPP_REPORT__BLOCK_DSO,
 39         PERF_HPP_REPORT__BLOCK_MAX_INDEX
 40 };
 41 
 42 struct block_report {
 43         struct block_hist       hist;
 44         u64                     cycles;
 45         struct block_fmt        fmts[PERF_HPP_REPORT__BLOCK_MAX_INDEX];
 46         int                     nr_fmts;
 47 };
 48 
 49 struct block_info *block_info__new(void);
 50 void block_info__delete(struct block_info *bi);
 51 
 52 int64_t __block_info__cmp(struct hist_entry *left, struct hist_entry *right);
 53 
 54 int64_t block_info__cmp(struct perf_hpp_fmt *fmt __maybe_unused,
 55                         struct hist_entry *left, struct hist_entry *right);
 56 
 57 int block_info__process_sym(struct hist_entry *he, struct block_hist *bh,
 58                             u64 *block_cycles_aggr, u64 total_cycles);
 59 
 60 struct block_report *block_info__create_report(struct evlist *evlist,
 61                                                u64 total_cycles,
 62                                                int *block_hpps, int nr_hpps,
 63                                                int *nr_reps);
 64 
 65 void block_info__free_report(struct block_report *reps, int nr_reps);
 66 
 67 int report__browse_block_hists(struct block_hist *bh, float min_percent,
 68                                struct evsel *evsel, struct perf_env *env);
 69 
 70 float block_info__total_cycles_percent(struct hist_entry *he);
 71 
 72 #endif /* __PERF_BLOCK_H */
 73 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php