Searched refs:pe (Results 1 – 8 of 8) sorted by relevance
/tools/perf/arch/x86/tests/ |
D | intel-cqm.c | 44 struct perf_event_attr pe; in test__intel_cqm_count_nmi_context() local 72 memset(&pe, 0, sizeof(pe)); in test__intel_cqm_count_nmi_context() 73 pe.size = sizeof(pe); in test__intel_cqm_count_nmi_context() 75 pe.type = PERF_TYPE_HARDWARE; in test__intel_cqm_count_nmi_context() 76 pe.config = PERF_COUNT_HW_CPU_CYCLES; in test__intel_cqm_count_nmi_context() 77 pe.read_format = PERF_FORMAT_GROUP; in test__intel_cqm_count_nmi_context() 79 pe.sample_period = 128; in test__intel_cqm_count_nmi_context() 80 pe.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_READ; in test__intel_cqm_count_nmi_context() 84 fd[0] = sys_perf_event_open(&pe, pid, -1, -1, flag); in test__intel_cqm_count_nmi_context() 90 memset(&pe, 0, sizeof(pe)); in test__intel_cqm_count_nmi_context() [all …]
|
/tools/perf/tests/ |
D | bp_signal_overflow.c | 64 struct perf_event_attr pe; in test__bp_signal_overflow() local 79 memset(&pe, 0, sizeof(struct perf_event_attr)); in test__bp_signal_overflow() 80 pe.type = PERF_TYPE_BREAKPOINT; in test__bp_signal_overflow() 81 pe.size = sizeof(struct perf_event_attr); in test__bp_signal_overflow() 83 pe.config = 0; in test__bp_signal_overflow() 84 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow() 85 pe.bp_addr = (unsigned long) test_function; in test__bp_signal_overflow() 86 pe.bp_len = sizeof(long); in test__bp_signal_overflow() 88 pe.sample_period = THRESHOLD; in test__bp_signal_overflow() 89 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow() [all …]
|
D | bp_signal.c | 104 struct perf_event_attr pe; in __event() local 107 memset(&pe, 0, sizeof(struct perf_event_attr)); in __event() 108 pe.type = PERF_TYPE_BREAKPOINT; in __event() 109 pe.size = sizeof(struct perf_event_attr); in __event() 111 pe.config = 0; in __event() 112 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event() 113 pe.bp_addr = (unsigned long) addr; in __event() 114 pe.bp_len = sizeof(long); in __event() 116 pe.sample_period = 1; in __event() 117 pe.sample_type = PERF_SAMPLE_IP; in __event() [all …]
|
/tools/perf/util/ |
D | metricgroup.c | 306 struct pmu_event *pe; in metricgroup__print() local 327 pe = &map->table[i]; in metricgroup__print() 329 if (!pe->name && !pe->metric_group && !pe->metric_name) in metricgroup__print() 331 if (!pe->metric_expr) in metricgroup__print() 333 g = pe->metric_group; in metricgroup__print() 334 if (!g && pe->metric_name) { in metricgroup__print() 335 if (pe->name) in metricgroup__print() 356 s = (char *)pe->metric_name; in metricgroup__print() 359 pe->metric_name, 8, "[", pe->desc) < 0) in metricgroup__print() 364 s, 8, "[", pe->metric_expr) < 0) in metricgroup__print() [all …]
|
D | pmu.c | 767 struct pmu_event *pe = &map->table[i++]; in pmu_add_cpu_aliases() local 768 const char *pname = pe->pmu ? pe->pmu : cpu_name; in pmu_add_cpu_aliases() 770 if (!pe->name) { in pmu_add_cpu_aliases() 771 if (pe->metric_group || pe->metric_name) in pmu_add_cpu_aliases() 785 __perf_pmu__new_alias(head, NULL, (char *)pe->name, in pmu_add_cpu_aliases() 786 (char *)pe->desc, (char *)pe->event, in pmu_add_cpu_aliases() 787 (char *)pe->long_desc, (char *)pe->topic, in pmu_add_cpu_aliases() 788 (char *)pe->unit, (char *)pe->perpkg, in pmu_add_cpu_aliases() 789 (char *)pe->metric_expr, in pmu_add_cpu_aliases() 790 (char *)pe->metric_name); in pmu_add_cpu_aliases()
|
D | python.c | 355 tracepoint_field(struct pyrf_event *pe, struct tep_format_field *field) in tracepoint_field() argument 358 void *data = pe->sample.raw_data; in tracepoint_field()
|
/tools/testing/selftests/net/ |
D | nettest.c | 1573 struct protoent *pe; in main() local 1625 pe = getprotobyname(optarg); in main() 1626 if (pe) { in main() 1627 args.protocol = pe->p_proto; in main()
|
/tools/power/pm-graph/ |
D | sleepgraph.py | 1708 dc, ps, pe = len(devlist), self.dmesg[phase]['start'], self.dmesg[phase]['end'] 1715 sysvals.vprint('%20s: %f - %f (%d devices)' % (phase, ps, pe, dc))
|