| /linux/drivers/isdn/mISDN/ |
| A D | dsp_audio.c | 130 sample = -sample; /* get magnitude */ in linear2ulaw() 133 sample = sample + BIAS; in linear2ulaw() 242 s32 sample; in dsp_audio_generate_mix_table() local 333 sample = 32767; in dsp_audio_generate_volume_changes() 339 sample = 32767; in dsp_audio_generate_volume_changes() 345 sample = 32767; in dsp_audio_generate_volume_changes() 351 sample = 32767; in dsp_audio_generate_volume_changes() 357 sample = 32767; in dsp_audio_generate_volume_changes() 363 sample = 32767; in dsp_audio_generate_volume_changes() 369 sample = 32767; in dsp_audio_generate_volume_changes() [all …]
|
| /linux/tools/perf/ |
| A D | builtin-timechart.c | 295 sample = zalloc(sizeof(*sample)); in pid_put_sample() 676 c_state_end(tchart, sample->cpu, sample->time); in process_sample_power_end() 757 sample = zalloc(sizeof(*sample)); in pid_begin_io_sample() 758 if (!sample) in pid_begin_io_sample() 762 sample->fd = fd; in pid_begin_io_sample() 805 if (sample->end_time - sample->start_time < tchart->min_time) in pid_end_io_sample() 806 sample->end_time = sample->start_time + tchart->min_time; in pid_end_io_sample() 841 if (!sample->err && sample->bytes > c->max_bytes) in pid_end_io_sample() 1132 sample = sample->next; in draw_cpu_usage() 1162 for (sample = c->io_samples; sample; sample = sample->next) { in draw_io_bars() [all …]
|
| A D | builtin-script.c | 833 printed += fprintf(fp, "%7d/%-7d ", sample->pid, sample->tid); in perf_sample__fprintf_start() 1444 len = grab_bb(buffer, sample->ip, sample->ip, in perf_sample__fprintf_brstackinsn() 1637 if (!PRINT_FIELD(IPC) || !sample->cyc_cnt || !sample->insn_cnt) in perf_sample__fprintf_ipc() 1640 ipc = (sample->insn_cnt * 100) / sample->cyc_cnt; in perf_sample__fprintf_ipc() 2178 .sample = sample, in perf_sample__fprint_metric() 2292 sample->raw_data, sample->raw_size, fp); in process_event() 2687 return print_event(tool, event, sample, machine, sample->pid, in process_cgroup_event() 2756 return print_event(tool, event, sample, machine, sample->pid, in process_switch_event() 2777 return print_event(tool, event, sample, machine, sample->pid, in process_lost_event() 2811 return print_event(tool, event, sample, machine, sample->pid, in process_bpf_events() [all …]
|
| A D | builtin-kwork.c | 270 atom->time = sample->time; in atom_new() 420 struct perf_sample *sample) in profile_event_match() argument 423 u64 time = sample->time; in profile_event_match() 583 u64 exit_time = sample->time; in report_update_exit_event() 702 thread = machine__findnew_thread(machine, sample->pid, sample->pid); in timehist_save_callchain() 887 u64 exit_time = sample->time; in top_update_runtime() 1013 work->cpu = sample->cpu; in irq_work_init() 1142 work->cpu = sample->cpu; in softirq_work_init() 1241 sample, "function"); in workqueue_work_init() 1244 work->cpu = sample->cpu; in workqueue_work_init() [all …]
|
| A D | builtin-inject.c | 48 struct perf_sample sample; member 881 sample->pid, sample->tid, in mark_dso_hit() 926 .sample = sample, in perf_event__inject_buildid() 932 thread = machine__findnew_thread(machine, sample->pid, sample->tid); in perf_event__inject_buildid() 939 if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) { in perf_event__inject_buildid() 992 ent->tid = sample->tid; in perf_inject__sched_switch() 1596 gs->ev.sample.time = 0; in guest_session__fetch() 1614 guest_session__convert_time(gs, gs->ev.sample.time, &gs->ev.sample.time); in guest_session__fetch() 1673 sample = &gs->ev.sample; in guest_session__inject_events() 1690 id = sample->id; in guest_session__inject_events() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_ringbuf_map_key.c | 10 struct sample { struct 24 __type(key, struct sample); argument 38 struct sample *sample, sample_copy; in test_ringbuf_mem_map_key() local 44 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf_mem_map_key() 45 if (!sample) in test_ringbuf_mem_map_key() 48 sample->pid = pid; in test_ringbuf_mem_map_key() 49 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf_mem_map_key() 50 sample->seq = ++seq; in test_ringbuf_mem_map_key() 51 sample->value = 42; in test_ringbuf_mem_map_key() 66 __builtin_memcpy(&sample_copy, sample, sizeof(struct sample)); in test_ringbuf_mem_map_key() [all …]
|
| A D | test_ringbuf.c | 10 struct sample { struct 43 struct sample *sample; in test_ringbuf() local 48 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf() 49 if (!sample) { in test_ringbuf() 54 sample->pid = pid; in test_ringbuf() 55 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf() 56 sample->value = value; in test_ringbuf() 58 sample->seq = seq++; in test_ringbuf() 61 if (sample->seq & 1) { in test_ringbuf() 63 bpf_ringbuf_output(&ringbuf, sample, sizeof(*sample), flags); in test_ringbuf() [all …]
|
| A D | test_ringbuf_n.c | 14 struct sample { struct 31 struct sample *sample; in test_ringbuf_n() local 36 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf_n() 37 if (!sample) in test_ringbuf_n() 40 sample->pid = pid; in test_ringbuf_n() 41 sample->value = value; in test_ringbuf_n() 42 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf_n() 44 bpf_ringbuf_submit(sample, 0); in test_ringbuf_n()
|
| A D | test_ringbuf_multi.c | 9 struct sample { struct 60 struct sample *sample; in test_ringbuf() local 72 sample = bpf_ringbuf_reserve(rb, sizeof(*sample), 0); in test_ringbuf() 73 if (!sample) { in test_ringbuf() 78 sample->pid = pid; in test_ringbuf() 79 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf() 80 sample->value = value; in test_ringbuf() 82 sample->seq = total; in test_ringbuf() 85 bpf_ringbuf_submit(sample, 0); in test_ringbuf()
|
| /linux/tools/perf/scripts/python/ |
| A D | intel-pt-events.py | 232 ts = sample["time"] 233 cpu = sample["cpu"] 234 pid = sample["pid"] 235 tid = sample["tid"] 238 vcpu = sample["vcpu"] 267 ip = sample["ip"] 269 if "cyc_cnt" in sample: 291 addr = sample["addr"] 300 ip = sample["ip"] 357 cpu = sample["cpu"] [all …]
|
| A D | arm-cs-trace-disasm.py | 116 (sample['cpu'], sample['addr'], sample['phys_addr'], \ 117 sample['ip'], sample['pid'], sample['tid'], \ 118 sample['period'], sample['time'])) 132 cpu = sample["cpu"] 133 pid = sample["pid"] 134 tid = sample["tid"] 140 ip = sample["ip"] 191 cpu = sample["cpu"] 192 ip = sample["ip"] 193 addr = sample["addr"] [all …]
|
| /linux/tools/perf/util/ |
| A D | arm64-frame-pointer-unwind-support.c | 17 static bool get_leaf_frame_caller_enabled(struct perf_sample *sample) in get_leaf_frame_caller_enabled() argument 20 && sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_LR); in get_leaf_frame_caller_enabled() 35 struct regs_dump old_regs = sample->user_regs; in get_leaf_frame_caller_aarch64() 37 if (!get_leaf_frame_caller_enabled(sample)) in get_leaf_frame_caller_aarch64() 46 if (!(sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_PC))) { in get_leaf_frame_caller_aarch64() 47 sample->user_regs.cache_mask |= SMPL_REG_MASK(PERF_REG_ARM64_PC); in get_leaf_frame_caller_aarch64() 48 sample->user_regs.cache_regs[PERF_REG_ARM64_PC] = sample->callchain->ips[usr_idx+1]; in get_leaf_frame_caller_aarch64() 51 if (!(sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_SP))) { in get_leaf_frame_caller_aarch64() 52 sample->user_regs.cache_mask |= SMPL_REG_MASK(PERF_REG_ARM64_SP); in get_leaf_frame_caller_aarch64() 53 sample->user_regs.cache_regs[PERF_REG_ARM64_SP] = 0; in get_leaf_frame_caller_aarch64() [all …]
|
| A D | bpf-filter.l | 17 perf_bpf_filter_lval.sample.term = term; in sample() 18 perf_bpf_filter_lval.sample.part = 0; in sample() 25 perf_bpf_filter_lval.sample.term = term; in sample_part() 26 perf_bpf_filter_lval.sample.part = part; in sample_part() 34 perf_bpf_filter_lval.sample.part = 0; in sample_path() 88 ip { return sample(PBF_TERM_IP); } 89 id { return sample(PBF_TERM_ID); } 90 tid { return sample(PBF_TERM_TID); } 92 cpu { return sample(PBF_TERM_CPU); } 116 uid { return sample(PBF_TERM_UID); } [all …]
|
| A D | intel-pt.c | 295 intel_pt_dump(pt, sample->aux_sample.data, sample->aux_sample.size); in intel_pt_dump_sample() 1722 sample->cpumode = intel_pt_cpumode(ptq, sample->ip, sample->addr); in intel_pt_prep_b_sample() 1726 event->sample.header.misc = sample->cpumode; in intel_pt_prep_b_sample() 1922 if (!sample->ip) in intel_pt_prep_p_sample() 2250 sample.id = id; in intel_pt_do_synth_pebs_sample() 3135 sample->pid, sample->tid, 0, sample->time, in intel_pt_lost() 3136 sample->machine_pid, sample->vcpu); in intel_pt_lost() 3227 cpu, tid, sample->time, perf_time_to_tsc(sample->time, in intel_pt_process_switch() 3300 return machine__set_current_tid(machine, sample->vcpu, sample->pid, sample->tid); in intel_pt_guest_context_switch() 3467 if (sample->time && sample->time != (u64)-1) in intel_pt_process_event() [all …]
|
| A D | s390-sample-raw.c | 49 size_t len = sample->raw_size, offset = 0; in s390_cpumcfdg_testctr() 50 unsigned char *buf = sample->raw_data; in s390_cpumcfdg_testctr() 183 unsigned char *buf = sample->raw_data; in s390_cpumcfdg_dump() 235 size_t len = sample->raw_size; in s390_pai_all_test() 245 unsigned char *p = sample->raw_data; in s390_pai_all_dump() 287 struct perf_sample *sample) in evlist__s390_sample_raw() argument 300 if (!sample->raw_size || !sample->raw_data) in evlist__s390_sample_raw() 307 if (!s390_cpumcfdg_testctr(sample)) in evlist__s390_sample_raw() 310 s390_cpumcfdg_dump(evsel->pmu, sample); in evlist__s390_sample_raw() 325 if (!s390_pai_all_test(sample)) { in evlist__s390_sample_raw() [all …]
|
| /linux/tools/perf/arch/x86/util/ |
| A D | kvm-stat.c | 33 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key() 34 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key() 51 mmio_event_get_key(evsel, sample, key); in mmio_event_begin() 68 mmio_event_get_key(evsel, sample, key); in mmio_event_end() 93 struct perf_sample *sample, in ioport_event_get_key() argument 97 key->info = evsel__intval(evsel, sample, "rw"); in ioport_event_get_key() 101 struct perf_sample *sample, in ioport_event_begin() argument 105 ioport_event_get_key(evsel, sample, key); in ioport_event_begin() 137 struct perf_sample *sample, in msr_event_get_key() argument 145 struct perf_sample *sample, in msr_event_begin() argument [all …]
|
| A D | archinsn.c | 9 void arch_fetch_insn(struct perf_sample *sample, in arch_fetch_insn() argument 17 if (!sample->ip) in arch_fetch_insn() 19 len = thread__memcpy(thread, machine, sample->insn, sample->ip, sizeof(sample->insn), &is64bit); in arch_fetch_insn() 23 ret = insn_decode(&insn, sample->insn, len, in arch_fetch_insn() 26 sample->insn_len = insn.length; in arch_fetch_insn()
|
| /linux/net/netfilter/ |
| A D | xt_rateest.c | 18 struct gnet_stats_rate_est64 sample = {0}; in xt_rateest_mt() local 22 gen_estimator_read(&info->est1->rate_est, &sample); in xt_rateest_mt() 25 bps1 = info->bps1 >= sample.bps ? info->bps1 - sample.bps : 0; in xt_rateest_mt() 26 pps1 = info->pps1 >= sample.pps ? info->pps1 - sample.pps : 0; in xt_rateest_mt() 28 bps1 = sample.bps; in xt_rateest_mt() 29 pps1 = sample.pps; in xt_rateest_mt() 36 gen_estimator_read(&info->est2->rate_est, &sample); in xt_rateest_mt() 39 bps2 = info->bps2 >= sample.bps ? info->bps2 - sample.bps : 0; in xt_rateest_mt() 40 pps2 = info->pps2 >= sample.pps ? info->pps2 - sample.pps : 0; in xt_rateest_mt() 42 bps2 = sample.bps; in xt_rateest_mt() [all …]
|
| /linux/tools/testing/selftests/rust/ |
| A D | test_probe_samples.sh | 23 for sample in "${rust_sample_modules[@]}"; do 24 if ! /sbin/modprobe -n -q "$sample"; then 25 ktap_skip_all "module $sample is not found in /lib/modules/$(uname -r)" 32 for sample in "${rust_sample_modules[@]}"; do 33 if /sbin/modprobe -q "$sample"; then 34 /sbin/modprobe -q -r "$sample" 35 ktap_test_pass "$sample" 37 ktap_test_fail "$sample"
|
| /linux/samples/qmi/ |
| A D | qmi_sample_client.c | 456 struct qmi_sample *sample; in qmi_sample_probe() local 460 sample = devm_kzalloc(&pdev->dev, sizeof(*sample), GFP_KERNEL); in qmi_sample_probe() 461 if (!sample) in qmi_sample_probe() 481 if (IS_ERR(sample->de_dir)) { in qmi_sample_probe() 482 ret = PTR_ERR(sample->de_dir); in qmi_sample_probe() 486 sample->de_data = debugfs_create_file("data", 0600, sample->de_dir, in qmi_sample_probe() 487 sample, &data_fops); in qmi_sample_probe() 488 if (IS_ERR(sample->de_data)) { in qmi_sample_probe() 493 sample->de_ping = debugfs_create_file("ping", 0600, sample->de_dir, in qmi_sample_probe() 494 sample, &ping_fops); in qmi_sample_probe() [all …]
|
| /linux/tools/perf/util/scripting-engines/ |
| A D | trace-event-python.c | 434 sample, NULL, NULL, in python_process_callchain() 681 struct perf_sample *sample, in set_sample_read_in_dict() argument 894 (const char *)sample->raw_data, sample->raw_size)); in get_perf_sample_dict() 908 if (sample->machine_pid) { in get_perf_sample_dict() 926 if (sample->flags) in get_perf_sample_dict() 930 if (sample->insn_cnt && sample->cyc_cnt) { in get_perf_sample_dict() 957 int cpu = sample->cpu; in python_process_tracepoint() 958 void *data = sample->raw_data; in python_process_tracepoint() 1362 tuple_set_bytes(t, 2, es->sample->raw_data, es->sample->raw_size); in python_export_synth() 1438 struct perf_sample *sample, in python_export_context_switch() argument [all …]
|
| /linux/tools/perf/dlfilters/ |
| A D | dlfilter-test-api-v0.c | 181 if (sample->x != expected.x) \ 202 CHECK(sample->size >= sizeof(struct perf_dlfilter_sample)); in check_sample() 217 CHECK(!sample->raw_data); in check_sample() 219 CHECK(!sample->brstack); in check_sample() 221 CHECK(!sample->raw_callchain); in check_sample() 224 CHECK(!strncmp(sample->event, EVENT_NAME, strlen(EVENT_NAME))); in check_sample() 267 if (perf_dlfilter_fns.resolve_address(ctx, sample->ip, &address_al)) in check_address_al() 317 if (check_sample(data, sample)) in do_checks() 327 check_object_code(ctx, sample)) in do_checks() 340 return do_checks(data, sample, ctx, true); in filter_event_early() [all …]
|
| A D | dlfilter-show-cycles.c | 80 int filter_event_early(void *data, const struct perf_dlfilter_sample *sample, void *ctx) in filter_event_early() argument 82 __s32 cpu = sample->cpu; in filter_event_early() 83 __s32 tid = sample->tid; in filter_event_early() 86 if (!sample->cyc_cnt) in filter_event_early() 89 pos = event_entry(sample->event); in filter_event_early() 92 cycles[cpu][pos] += sample->cyc_cnt; in filter_event_early() 94 add_entry(tid, pos, sample->cyc_cnt); in filter_event_early() 106 int filter_event(void *data, const struct perf_dlfilter_sample *sample, void *ctx) in filter_event() argument 108 __s32 cpu = sample->cpu; in filter_event() 109 __s32 tid = sample->tid; in filter_event() [all …]
|
| A D | dlfilter-test-api-v2.c | 196 if (sample->x != expected.x) \ 217 CHECK(sample->size >= sizeof(struct perf_dlfilter_sample)); in check_sample() 232 CHECK(!sample->raw_data); in check_sample() 234 CHECK(!sample->brstack); in check_sample() 236 CHECK(!sample->raw_callchain); in check_sample() 239 CHECK(!strncmp(sample->event, EVENT_NAME, strlen(EVENT_NAME))); in check_sample() 282 if (perf_dlfilter_fns.resolve_address(ctx, sample->ip, &address_al)) in check_address_al() 336 if (check_sample(data, sample)) in do_checks() 346 check_object_code(ctx, sample)) in do_checks() 359 return do_checks(data, sample, ctx, true); in filter_event_early() [all …]
|
| /linux/Documentation/devicetree/bindings/hwmon/ |
| A D | adi,adm1275.yaml | 37 adi,volt-curr-sample-average: 43 adi,power-sample-average: 60 adi,volt-curr-sample-average: 62 adi,power-sample-average: false 72 adi,volt-curr-sample-average: 74 adi,power-sample-average: false 84 adi,volt-curr-sample-average: 86 adi,power-sample-average: 100 adi,volt-curr-sample-average: 102 adi,power-sample-average: [all …]
|