/linux-master/drivers/power/supply/ |
H A D | cpcap-battery.c | 57 #define CPCAP_REG_CCC1_AUTOCLEAR BIT(2) /* Resets sample registers */ 101 s32 sample; /* 24 or 32 bits */ member in struct:cpcap_coulomb_counter_data 236 * @sample: coulomb counter sample value 255 s32 sample, s32 accumulator, 264 acc -= (s64)sample * offset; 274 s32 sample, s32 accumulator, 277 return cpcap_battery_cc_raw_div(ddata, sample, 283 s32 sample, s32 accumulator, 286 return cpcap_battery_cc_raw_div(ddata, sample, 254 cpcap_battery_cc_raw_div(struct cpcap_battery_ddata *ddata, s32 sample, s32 accumulator, s16 offset, u32 divider) argument 273 cpcap_battery_cc_to_uah(struct cpcap_battery_ddata *ddata, s32 sample, s32 accumulator, s16 offset) argument 282 cpcap_battery_cc_to_ua(struct cpcap_battery_ddata *ddata, s32 sample, s32 accumulator, s16 offset) argument 443 s32 sample; local 641 u32 sample; local [all...] |
/linux-master/tools/perf/util/scripting-engines/ |
H A D | trace-event-perl.c | 259 static SV *perl_process_callchain(struct perf_sample *sample, argument 270 if (!symbol_conf.use_callchain || !sample->callchain) 276 sample, NULL, NULL, scripting_max_stack) != 0) { 342 static void perl_process_tracepoint(struct perf_sample *sample, argument 353 int cpu = sample->cpu; 354 void *data = sample->raw_data; 355 unsigned long long nsecs = sample->time; 391 XPUSHs(sv_2mortal(perl_process_callchain(sample, evsel, al))); 428 XPUSHs(sv_2mortal(perl_process_callchain(sample, evsel, al))); 438 struct perf_sample *sample, 437 perl_process_event_generic(union perf_event *event, struct perf_sample *sample, struct evsel *evsel) argument 461 perl_process_event(union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct addr_location *al, struct addr_location *addr_al) argument [all...] |
/linux-master/tools/perf/util/ |
H A D | cs-etm.c | 324 struct perf_sample sample; local 346 /* parse the sample to get the CPU */ 350 err = evsel__parse_sample(evsel, event, &sample); 353 cpu = sample.cpu; 355 /* no CPU in the sample - possibly recorded with an old version of perf */ 356 pr_err("CS_ETM: no CPU AUX_OUTPUT_HW_ID sample. Use compatible perf to record."); 625 * thread at that time must also be assigned to that sample. 627 * tracking the thread for the previous packet the branch sample 1337 struct perf_sample *sample, u64 type) 1339 event->header.size = perf_event__sample_event_size(sample, typ 1336 cs_etm__inject_event(union perf_event *event, struct perf_sample *sample, u64 type) argument 1422 cs_etm__copy_insn(struct cs_etm_queue *etmq, u64 trace_chan_id, const struct cs_etm_packet *packet, struct perf_sample *sample) argument 1480 struct perf_sample sample = {.ip = 0,}; local 1530 struct perf_sample sample = {.ip = 0,}; local 2737 cs_etm__process_event(struct perf_session *session, union perf_event *event, struct perf_sample *sample, struct perf_tool *tool) argument 2954 cs_etm__queue_aux_fragment(struct perf_session *session, off_t file_offset, size_t sz, struct perf_record_aux *aux_event, struct perf_sample *sample) argument 3070 struct perf_sample sample; local [all...] |
H A D | synthetic-events.c | 1445 size_t perf_event__sample_event_size(const struct perf_sample *sample, u64 type, u64 read_format) argument 1485 result += sz * sample->read.group.nr; 1494 sz = (sample->callchain->nr + 1) * sizeof(u64); 1500 result += sample->raw_size; 1504 sz = sample->branch_stack->nr * sizeof(struct branch_entry); 1511 if (sample->user_regs.abi) { 1513 sz = hweight64(sample->user_regs.mask) * sizeof(u64); 1521 sz = sample->user_stack.size; 1539 if (sample->intr_regs.abi) { 1541 sz = hweight64(sample 1574 copy_read_group_values(__u64 *array, __u64 read_format, const struct perf_sample *sample) argument 1588 perf_event__synthesize_sample(union perf_event *event, u64 type, u64 read_format, const struct perf_sample *sample) argument 1782 perf_event__synthesize_id_sample(__u64 *array, u64 type, const struct perf_sample *sample) argument [all...] |
H A D | data-convert-bt.c | 36 #include "util/sample.h" 296 struct perf_sample *sample, 303 void *data = sample->raw_data; 409 struct perf_sample *sample) 415 ret = add_tracepoint_field_value(cw, event_class, event, sample, 427 struct perf_sample *sample) 434 common_fields, sample); 437 fields, sample); 445 struct perf_sample *sample) 449 unsigned int raw_size = sample 293 add_tracepoint_field_value(struct ctf_writer *cw, struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct perf_sample *sample, struct tep_format_field *fmtf) argument 405 add_tracepoint_fields_values(struct ctf_writer *cw, struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct tep_format_field *fields, struct perf_sample *sample) argument 423 add_tracepoint_values(struct ctf_writer *cw, struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct evsel *evsel, struct perf_sample *sample) argument 443 add_bpf_output_values(struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct perf_sample *sample) argument 595 add_generic_values(struct ctf_writer *cw, struct bt_ctf_event *event, struct evsel *evsel, struct perf_sample *sample) argument 765 get_sample_cpu(struct ctf_writer *cw, struct perf_sample *sample, struct evsel *evsel) argument 795 process_sample_event(struct perf_tool *tool, union perf_event *_event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine __maybe_unused) argument [all...] |
H A D | db-export.h | 27 struct perf_sample *sample; member in struct:export_sample 62 struct perf_sample *sample, 99 struct perf_sample *sample, struct evsel *evsel, 108 struct perf_sample *sample, struct machine *machine);
|
H A D | data-convert-json.c | 151 struct perf_sample *sample, 162 if (machine__resolve(machine, &al, sample) < 0) { 176 output_json_key_format(out, false, 3, "timestamp", "%" PRIi64, sample->time); 181 output_json_key_format(out, true, 3, "cpu", "%i", sample->cpu); 188 if (sample->callchain) { 193 for (i = 0; i < sample->callchain->nr; ++i) { 194 u64 ip = sample->callchain->ips[i]; 227 output_sample_callchain_entry(tool, sample->ip, &al); 232 if (sample->raw_data) { 243 tep_print_field(&s, sample 149 process_sample_event(struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_sample *sample, struct evsel *evsel __maybe_unused, struct machine *machine) argument [all...] |
H A D | hist.c | 682 static void hists__res_sample(struct hist_entry *he, struct perf_sample *sample) argument 693 r->time = sample->time; 694 r->cpu = sample->cpu; 695 r->tid = sample->tid; 706 struct perf_sample *sample, 718 .cgroup = sample->cgroup, 730 .code_page_size = sample->code_page_size, 733 .period = sample->period, 742 .transaction = sample->transaction, 743 .raw_data = sample 699 __hists__add_entry(struct hists *hists, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, struct kvm_info *ki, struct block_info *block_info, struct perf_sample *sample, bool sample_self, struct hist_entry_ops *ops) argument 760 hists__add_entry(struct hists *hists, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, struct kvm_info *ki, struct perf_sample *sample, bool sample_self) argument 773 hists__add_entry_ops(struct hists *hists, struct hist_entry_ops *ops, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, struct kvm_info *ki, struct perf_sample *sample, bool sample_self) argument 821 struct perf_sample *sample = iter->sample; local 838 struct perf_sample *sample = iter->sample; local 898 struct perf_sample *sample = iter->sample; local 945 struct perf_sample *sample = iter->sample; local 996 struct perf_sample *sample = iter->sample; local 1014 struct perf_sample *sample = iter->sample; local 1059 struct perf_sample *sample = iter->sample; local 1117 struct perf_sample *sample = iter->sample; local 2668 hist__account_cycles(struct branch_stack *bs, struct addr_location *al, struct perf_sample *sample, bool nonany_branch_mode, u64 *total_cycles) argument [all...] |
/linux-master/tools/perf/tests/ |
H A D | openat-syscall-tp-fields.c | 17 #include "util/sample.h" 104 struct perf_sample sample; local 113 err = evsel__parse_sample(evsel, event, &sample); 115 pr_debug("Can't parse sample, err = %d\n", err); 119 tp_flags = evsel__intval(evsel, &sample, "flags");
|
H A D | stat.c | 26 struct perf_sample *sample __maybe_unused, 67 struct perf_sample *sample __maybe_unused, 98 struct perf_sample *sample __maybe_unused,
|
H A D | sw-clock.c | 16 #include "util/sample.h" 105 struct perf_sample sample; local 110 err = evlist__parse_sample(evlist, event, &sample); 112 pr_debug("Error during parse sample\n"); 116 total_periods += sample.period;
|
H A D | hists_cumulate.c | 17 struct sample { struct 26 static struct sample fake_samples[] = { 84 struct perf_sample sample = { .period = 1000, }; local 91 .sample = &sample, 100 sample.cpumode = PERF_RECORD_MISC_USER; 101 sample.pid = fake_samples[i].pid; 102 sample.tid = fake_samples[i].pid; 103 sample.ip = fake_samples[i].ip; 104 sample [all...] |
H A D | sample-parsing.c | 226 struct perf_sample sample = { local 289 sample.read.group.nr = 4; 290 sample.read.group.values = values; 292 sample.read.one.value = 0x08789faeb786aa87ULL; 293 sample.read.one.id = 99; 294 sample.read.one.lost = 1; 297 sz = perf_event__sample_event_size(&sample, sample_type, read_format); 311 &sample); 338 if (!samples_same(&sample, &sample_out, sample_type, read_format, evsel.needs_swap)) { 354 if (!samples_same(&sample, [all...] |
H A D | switch-tracking.c | 22 #include "util/sample.h" 129 struct perf_sample sample; local 134 if (evlist__parse_sample(evlist, event, &sample)) { 139 evsel = evlist__id2evsel(evlist, sample.id); 141 next_tid = evsel__intval(evsel, &sample, "next_pid"); 142 prev_tid = evsel__intval(evsel, &sample, "prev_pid"); 143 cpu = sample.cpu; 218 struct perf_sample sample; local 229 if (evlist__parse_sample(evlist, event, &sample)) { 234 if (!sample [all...] |
/linux-master/tools/perf/arch/arm/util/ |
H A D | unwind-libdw.c | 6 #include "../../../util/sample.h" 11 struct regs_dump *user_regs = &ui->sample->user_regs;
|
/linux-master/tools/perf/ |
H A D | builtin-trace.c | 210 u64 (*integer)(struct tp_field *field, struct perf_sample *sample); 211 void *(*pointer)(struct tp_field *field, struct perf_sample *sample); 216 static u64 tp_field__u##bits(struct tp_field *field, struct perf_sample *sample) \ 219 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \ 229 static u64 tp_field__swapped_u##bits(struct tp_field *field, struct perf_sample *sample) \ 232 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \ 269 static void *tp_field__ptr(struct tp_field *field, struct perf_sample *sample) argument 271 return sample->raw_data + field->offset; 489 #define perf_evsel__sc_tp_uint(evsel, name, sample) \ 491 fields->name.integer(&fields->name, sample); }) 1607 trace__process_event(struct trace *trace, struct machine *machine, union perf_event *event, struct perf_sample *sample) argument 1626 trace__tool_process(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) argument 2197 thread__update_stats(struct thread *thread, struct thread_trace *ttrace, int id, struct perf_sample *sample, long err, bool errno_summary) argument 2278 trace__fprintf_sample(struct trace *trace, struct evsel *evsel, struct perf_sample *sample, struct thread *thread) argument 2295 syscall__augmented_args(struct syscall *sc, struct perf_sample *sample, int *augmented_args_size, int raw_augmented_args_size) argument 2329 trace__sys_enter(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2408 trace__fprintf_sys_enter(struct trace *trace, struct evsel *evsel, struct perf_sample *sample) argument 2441 trace__resolve_callchain(struct trace *trace, struct evsel *evsel, struct perf_sample *sample, struct callchain_cursor *cursor) argument 2461 trace__fprintf_callchain(struct trace *trace, struct perf_sample *sample) argument 2478 trace__sys_exit(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2614 trace__vfs_getname(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2675 trace__sched_stat_runtime(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2729 bpf_output__fprintf(struct trace *trace, struct perf_sample *sample) argument 2737 trace__fprintf_tp_fields(struct trace *trace, struct evsel *evsel, struct perf_sample *sample, struct thread *thread, void *augmented_args, int augmented_args_size) argument 2809 trace__event_handler(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2900 print_location(FILE *f, struct perf_sample *sample, struct addr_location *al, bool print_dso, bool print_sym) argument 2917 trace__pgfault(struct trace *trace, struct evsel *evsel, union perf_event *event __maybe_unused, struct perf_sample *sample) argument 2996 trace__set_base_time(struct trace *trace, struct evsel *evsel, struct perf_sample *sample) argument 3013 trace__process_sample(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine __maybe_unused) argument 3171 trace__handle_event(struct trace *trace, union perf_event *event, struct perf_sample *sample) argument 3630 struct perf_sample sample; local [all...] |
H A D | builtin-kmem.c | 174 static int evsel__process_alloc_event(struct evsel *evsel, struct perf_sample *sample) argument 176 unsigned long ptr = evsel__intval(evsel, sample, "ptr"), 177 call_site = evsel__intval(evsel, sample, "call_site"); 178 int bytes_req = evsel__intval(evsel, sample, "bytes_req"), 179 bytes_alloc = evsel__intval(evsel, sample, "bytes_alloc"); 181 if (insert_alloc_stat(call_site, ptr, bytes_req, bytes_alloc, sample->cpu) || 204 node1 = cpu__get_node((struct perf_cpu){.cpu = sample->cpu}); 205 node2 = evsel__intval(evsel, sample, "node"); 246 static int evsel__process_free_event(struct evsel *evsel, struct perf_sample *sample) argument 248 unsigned long ptr = evsel__intval(evsel, sample, "pt 397 find_callsite(struct evsel *evsel, struct perf_sample *sample) argument 754 parse_gfp_flags(struct evsel *evsel, struct perf_sample *sample, unsigned int gfp_flags) argument 806 evsel__process_page_alloc_event(struct evsel *evsel, struct perf_sample *sample) argument 878 evsel__process_page_free_event(struct evsel *evsel, struct perf_sample *sample) argument 946 perf_kmem__skip_sample(struct perf_sample *sample) argument 958 process_sample_event(struct perf_tool *tool __maybe_unused, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument [all...] |
H A D | builtin-kvm.c | 186 .name = "sample", 619 struct perf_sample *sample, 623 key->key = evsel__intval(evsel, sample, kvm_exit_reason); 632 struct perf_sample *sample, struct event_key *key) 635 exit_event_get_key(evsel, sample, key); 648 struct perf_sample *sample __maybe_unused, 783 struct perf_sample *sample) 799 &kvm->al, NULL, NULL, NULL, ki, sample, true); 818 struct perf_sample *sample) 823 event = find_create_kvm_event(kvm, key, sample); 618 exit_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 631 exit_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 781 find_create_kvm_event(struct perf_kvm_stat *kvm, struct event_key *key, struct perf_sample *sample) argument 815 handle_begin_event(struct perf_kvm_stat *kvm, struct vcpu_event_record *vcpu_record, struct event_key *key, struct perf_sample *sample) argument 868 is_child_event(struct perf_kvm_stat *kvm, struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument 890 handle_child_event(struct perf_kvm_stat *kvm, struct vcpu_event_record *vcpu_record, struct event_key *key, struct perf_sample *sample) argument 916 handle_end_event(struct perf_kvm_stat *kvm, struct vcpu_event_record *vcpu_record, struct event_key *key, struct perf_sample *sample) argument 978 per_vcpu_record(struct thread *thread, struct evsel *evsel, struct perf_sample *sample) argument 999 handle_kvm_event(struct perf_kvm_stat *kvm, struct thread *thread, struct evsel *evsel, struct perf_sample *sample) argument 1181 skip_sample(struct perf_kvm_stat *kvm, struct perf_sample *sample) argument 1190 process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument [all...] |
H A D | builtin-annotate.c | 144 struct perf_sample *sample) 153 bi = sample__resolve_bstack(sample, al); 176 struct perf_sample *sample = iter->sample; local 181 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); 186 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel); 193 struct perf_sample *sample, 200 .sample = sample, 209 if (machine__resolve(machine, &a, sample) < 143 process_branch_stack(struct branch_stack *bs, struct addr_location *al, struct perf_sample *sample) argument 192 process_branch_callback(struct evsel *evsel, struct perf_sample *sample, struct addr_location *al, struct perf_annotate *ann, struct machine *machine) argument 235 evsel__add_sample(struct evsel *evsel, struct perf_sample *sample, struct addr_location *al, struct perf_annotate *ann, struct machine *machine) argument 280 process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument [all...] |
/linux-master/tools/perf/scripts/python/ |
H A D | mem-phys-addr.py | 94 sample = param_dict["sample"] 95 phys_addr = sample["phys_addr"]
|
/linux-master/include/uapi/sound/ |
H A D | sfnt_info.h | 42 #define SNDRV_SFNT_PROBE_DATA 8 /* optarg=sample */ 58 unsigned short type; /* sample type */ 63 #define SNDRV_SFNT_PAT_SHARED 0x200 /* sample is shared */ 103 unsigned short sample; /* sample id */ member in struct:soundfont_voice_info 104 int start, end; /* sample offset correction */ 106 short rate_offset; /* sample rate pitch offset */ 107 unsigned short mode; /* sample mode */ 121 unsigned char amplitude; /* sample volume (127 max) */ 125 unsigned short sample_mode; /* sample mode_fla 148 unsigned short sample; /* sample id */ member in struct:soundfont_sample_info [all...] |
/linux-master/tools/perf/scripts/python/Perf-Trace-Util/ |
H A D | Context.c | 103 if (c->sample->ip && !c->sample->insn_len && thread__maps(c->al->thread)) { 106 script_fetch_insn(c->sample, c->al->thread, machine); 108 if (!c->sample->insn_len) 111 return _PyBytes_FromStringAndSize(c->sample->insn, c->sample->insn_len);
|
/linux-master/kernel/bpf/ |
H A D | ringbuf.c | 61 * sample is currently being written. 68 * validate each sample to ensure that they're correctly formatted, and 470 static void bpf_ringbuf_commit(void *sample, u64 flags, bool discard) argument 477 hdr = sample - BPF_RINGBUF_HDR_SZ; 498 BPF_CALL_2(bpf_ringbuf_submit, void *, sample, u64, flags) 500 bpf_ringbuf_commit(sample, flags, false /* discard */); 511 BPF_CALL_2(bpf_ringbuf_discard, void *, sample, u64, flags) 513 bpf_ringbuf_commit(sample, flags, true /* discard */); 583 void *sample; local 599 sample 657 __bpf_user_ringbuf_peek(struct bpf_ringbuf *rb, void **sample, u32 *size) argument 747 void *sample; local [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | tc_sample.sh | 4 # Test that packets are sampled when tc-sample is used and that reported 233 skip_sw action sample rate 32 group 1 248 log_test "tc sample rate ($desc)" 264 skip_sw action sample rate $((35 * 10 ** 8)) group 1 270 skip_sw action sample rate $((35 * 10 ** 8 + 1)) \ 274 log_test "tc sample maximum rate" 285 skip_sw action sample rate 1024 group 1 289 skip_sw action sample rate 1024 group 1 &> /dev/null 298 skip_sw action sample rate 1024 group 1 301 log_test "tc sample conflic [all...] |
/linux-master/kernel/trace/ |
H A D | trace_hwlat.c | 57 static struct dentry *hwlat_sample_width; /* sample width us */ 58 static struct dentry *hwlat_sample_window; /* sample window us */ 98 int nmi_count; /* # NMIs during this sample */ 130 static void trace_hwlat_sample(struct hwlat_sample *sample) argument 143 entry->seqnum = sample->seqnum; 144 entry->duration = sample->duration; 145 entry->outer_duration = sample->outer_duration; 146 entry->timestamp = sample->timestamp; 147 entry->nmi_total_ts = sample->nmi_total_ts; 148 entry->nmi_count = sample 208 u64 sample = 0; local [all...] |