Home
last modified time | relevance | path

Searched full:hpp (Results 1 – 25 of 47) sorted by relevance

12

/kernel/linux/linux-4.19/tools/perf/ui/
Dhist.c12 /* hist period print (hpp) functions */
14 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument
16 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
17 advance_hpp(hpp, __ret); \
21 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
28 char *buf = hpp->buf; in __hpp__fmt()
29 size_t size = hpp->size; in __hpp__fmt()
38 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
40 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
65 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
[all …]
/kernel/linux/linux-5.10/tools/perf/ui/stdio/
Dhist.c414 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
419 char *start = hpp->buf; in __hist_entry__snprintf()
435 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf()
436 advance_hpp(hpp, ret); in __hist_entry__snprintf()
441 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf()
443 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf()
445 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf()
446 advance_hpp(hpp, ret); in __hist_entry__snprintf()
449 return hpp->buf - start; in __hist_entry__snprintf()
452 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
[all …]
/kernel/linux/linux-4.19/tools/perf/ui/stdio/
Dhist.c406 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
411 char *start = hpp->buf; in __hist_entry__snprintf()
427 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf()
428 advance_hpp(hpp, ret); in __hist_entry__snprintf()
433 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf()
435 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf()
437 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf()
438 advance_hpp(hpp, ret); in __hist_entry__snprintf()
441 return hpp->buf - start; in __hist_entry__snprintf()
444 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
[all …]
/kernel/linux/linux-5.10/tools/perf/ui/
Dhist.c16 /* hist period print (hpp) functions */
18 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument
20 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
21 advance_hpp(hpp, __ret); \
25 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
32 char *buf = hpp->buf; in __hpp__fmt()
33 size_t size = hpp->size; in __hpp__fmt()
42 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
44 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
69 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
[all …]
/kernel/linux/linux-4.19/tools/perf/
Dbuiltin-c2c.c393 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
395 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
420 struct perf_hpp *hpp __maybe_unused, in c2c_width()
436 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
443 int width = c2c_width(fmt, hpp, hists); in c2c_header()
467 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
483 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
487 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
493 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
497 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
[all …]
Dbuiltin-diff.c28 /* Diff command specific HPP columns. */
863 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_baseline() argument
872 return percent_color_snprintf(hpp->buf, hpp->size, in hpp__color_baseline()
875 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline()
892 struct perf_hpp *hpp, struct hist_entry *he, in __hpp__color_compare() argument
913 return percent_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
924 return value_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
935 return color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
942 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare()
945 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare()
[all …]
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-c2c.c406 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
408 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
433 struct perf_hpp *hpp __maybe_unused, in c2c_width()
449 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
456 int width = c2c_width(fmt, hpp, hists); in c2c_header()
480 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
496 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
500 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
506 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
510 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
[all …]
Dbuiltin-diff.c49 /* Diff command specific HPP columns. */
1321 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_baseline() argument
1330 return percent_color_snprintf(hpp->buf, hpp->size, in hpp__color_baseline()
1333 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline()
1350 struct perf_hpp *hpp, int width) in cycles_printf() argument
1361 hpp->skip = true; in cycles_printf()
1390 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cycles_printf()
1394 struct perf_hpp *hpp, struct hist_entry *he, in __hpp__color_compare() argument
1410 hpp->skip = true; in __hpp__color_compare()
1424 return percent_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
[all …]
/kernel/linux/linux-4.19/tools/perf/ui/gtk/
Dhists.c14 static int __percent_color_snprintf(struct perf_hpp *hpp, const char *fmt, ...) in __percent_color_snprintf() argument
21 char *buf = hpp->buf; in __percent_color_snprintf()
22 size_t size = hpp->size; in __percent_color_snprintf()
48 struct perf_hpp *hpp, \
51 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
62 struct perf_hpp *hpp, \
65 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
305 struct perf_hpp hpp = { in perf_gtk__show_hists() local
378 fmt->color(fmt, &hpp, h); in perf_gtk__show_hists()
380 fmt->entry(fmt, &hpp, h); in perf_gtk__show_hists()
[all …]
/kernel/linux/linux-5.10/tools/perf/ui/gtk/
Dhists.c16 static int __percent_color_snprintf(struct perf_hpp *hpp, const char *fmt, ...) in __percent_color_snprintf() argument
23 char *buf = hpp->buf; in __percent_color_snprintf()
24 size_t size = hpp->size; in __percent_color_snprintf()
50 struct perf_hpp *hpp, \
53 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
64 struct perf_hpp *hpp, \
67 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
307 struct perf_hpp hpp = { in perf_gtk__show_hists() local
380 fmt->color(fmt, &hpp, h); in perf_gtk__show_hists()
382 fmt->entry(fmt, &hpp, h); in perf_gtk__show_hists()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dblock-info.c164 struct perf_hpp *hpp, in block_column_header() argument
171 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_column_header()
176 struct perf_hpp *hpp __maybe_unused, in block_column_width()
184 static int color_pct(struct perf_hpp *hpp, int width, double pct) in color_pct() argument
188 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", in color_pct()
192 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, pct); in color_pct()
196 struct perf_hpp *hpp, in block_total_cycles_pct_entry() argument
206 return color_pct(hpp, block_fmt->width, 100.0 * ratio); in block_total_cycles_pct_entry()
240 struct perf_hpp *hpp, struct hist_entry *he) in block_cycles_lbr_entry() argument
248 return scnprintf(hpp->buf, hpp->size, "%*s", block_fmt->width, in block_cycles_lbr_entry()
[all …]
Dsort.c1769 struct perf_hpp_fmt hpp; member
1780 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
1784 static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_header() argument
1791 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
1796 return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, fmt->name); in __sort__hpp_header()
1800 struct perf_hpp *hpp __maybe_unused, in __sort__hpp_width()
1806 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
1814 static int __sort__hpp_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_entry() argument
1820 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
1825 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
[all …]
Dhist.h170 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp,
259 int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
261 int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
263 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
265 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
303 struct perf_hpp_list hpp; member
408 typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front);
409 typedef int (*hpp_snprint_fn)(struct perf_hpp *hpp, const char *fmt, ...);
411 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
414 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
[all …]
Ds390-cpumsf.c263 local.hpp = be64toh(basicp->hpp); in s390_cpumsf_basic_show()
272 "\t\tCL:%d HPP:%#018llx GPP:%#018llx\n", in s390_cpumsf_basic_show()
279 basic->hpp, basic->gpp); in s390_cpumsf_basic_show()
508 .pid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event()
509 .tid = basic->hpp & S390_LPP_PID_MASK, in s390_cpumsf_make_event()
Ds390-cpumsf-kernel.h30 unsigned long long hpp; /* Host Program Parameter */ member
/kernel/linux/linux-4.19/tools/perf/util/
Dsort.c1642 struct perf_hpp_fmt hpp; member
1653 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
1657 static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_header() argument
1664 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
1669 return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, fmt->name); in __sort__hpp_header()
1673 struct perf_hpp *hpp __maybe_unused, in __sort__hpp_width()
1679 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
1687 static int __sort__hpp_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_entry() argument
1693 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
1698 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
[all …]
Dhist.h158 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp,
243 int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
245 int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
247 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
249 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
287 struct perf_hpp_list hpp; member
392 typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front);
393 typedef int (*hpp_snprint_fn)(struct perf_hpp *hpp, const char *fmt, ...);
395 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
398 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
[all …]
Ds390-cpumsf-kernel.h30 unsigned long long hpp; /* Host Program Parameter */ member
/kernel/linux/linux-4.19/tools/perf/ui/browsers/
Dhists.c1145 int __hpp__slsmg_color_printf(struct perf_hpp *hpp, const char *fmt, ...) in __hpp__slsmg_color_printf() argument
1147 struct hpp_arg *arg = hpp->ptr; in __hpp__slsmg_color_printf()
1159 ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); in __hpp__slsmg_color_printf()
1160 ui_browser__printf(arg->b, "%s", hpp->buf); in __hpp__slsmg_color_printf()
1173 struct perf_hpp *hpp, \
1176 return hpp__fmt(fmt, hpp, he, __hpp_get_##_field, " %*.2f%%", \
1188 struct perf_hpp *hpp, \
1192 struct hpp_arg *arg = hpp->ptr; \
1194 int ret = scnprintf(hpp->buf, hpp->size, \
1196 ui_browser__printf(arg->b, "%s", hpp->buf); \
[all …]
/kernel/linux/linux-5.10/tools/perf/ui/browsers/
Dhists.c1217 int __hpp__slsmg_color_printf(struct perf_hpp *hpp, const char *fmt, ...) in __hpp__slsmg_color_printf() argument
1219 struct hpp_arg *arg = hpp->ptr; in __hpp__slsmg_color_printf()
1231 ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); in __hpp__slsmg_color_printf()
1232 ui_browser__printf(arg->b, "%s", hpp->buf); in __hpp__slsmg_color_printf()
1245 struct perf_hpp *hpp, \
1248 return hpp__fmt(fmt, hpp, he, __hpp_get_##_field, " %*.2f%%", \
1260 struct perf_hpp *hpp, \
1264 struct hpp_arg *arg = hpp->ptr; \
1266 int ret = scnprintf(hpp->buf, hpp->size, \
1268 ui_browser__printf(arg->b, "%s", hpp->buf); \
[all …]
/kernel/linux/linux-4.19/drivers/pci/
Dprobe.c1877 static void program_hpp_type0(struct pci_dev *dev, struct hpp_type0 *hpp) in program_hpp_type0() argument
1881 if (!hpp) in program_hpp_type0()
1882 hpp = &pci_default_type0; in program_hpp_type0()
1884 if (hpp->revision > 1) { in program_hpp_type0()
1886 hpp->revision); in program_hpp_type0()
1887 hpp = &pci_default_type0; in program_hpp_type0()
1890 pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, hpp->cache_line_size); in program_hpp_type0()
1891 pci_write_config_byte(dev, PCI_LATENCY_TIMER, hpp->latency_timer); in program_hpp_type0()
1893 if (hpp->enable_serr) in program_hpp_type0()
1895 if (hpp->enable_perr) in program_hpp_type0()
[all …]
Dpci-acpi.c286 static acpi_status acpi_run_hpp(acpi_handle handle, struct hotplug_params *hpp) in acpi_run_hpp() argument
293 memset(hpp, 0, sizeof(struct hotplug_params)); in acpi_run_hpp()
314 hpp->t0 = &hpp->type0_data; in acpi_run_hpp()
315 hpp->t0->revision = 1; in acpi_run_hpp()
316 hpp->t0->cache_line_size = fields[0].integer.value; in acpi_run_hpp()
317 hpp->t0->latency_timer = fields[1].integer.value; in acpi_run_hpp()
318 hpp->t0->enable_serr = fields[2].integer.value; in acpi_run_hpp()
319 hpp->t0->enable_perr = fields[3].integer.value; in acpi_run_hpp()
329 * @hpp - allocated by the caller
331 int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp) in pci_get_hp_params() argument
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/clock/
Drenesas,r8a7740-cpg-clocks.txt18 "m1", "hp", "hpp", "usbp", "s", "zb", "m3", and "cp".
35 "hpp", "usbp", "s", "zb", "m3",
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/
Drenesas,cpg-clocks.yaml116 - const: hpp
238 "usb24s", "i", "zg", "b", "m1", "hp", "hpp",
/kernel/linux/linux-4.19/include/linux/
Dpci_hotplug.h171 int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp);
179 struct hotplug_params *hpp) in pci_get_hp_params() argument

12