/linux-6.3-rc2/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-6.3-rc2/tools/perf/ |
A D | builtin-timechart.c | 295 sample = zalloc(sizeof(*sample)); in pid_put_sample() 673 c_state_end(tchart, sample->cpu, sample->time); in process_sample_power_end() 754 sample = zalloc(sizeof(*sample)); in pid_begin_io_sample() 755 if (!sample) in pid_begin_io_sample() 759 sample->fd = fd; in pid_begin_io_sample() 802 if (sample->end_time - sample->start_time < tchart->min_time) in pid_end_io_sample() 803 sample->end_time = sample->start_time + tchart->min_time; in pid_end_io_sample() 838 if (!sample->err && sample->bytes > c->max_bytes) in pid_end_io_sample() 1129 sample = sample->next; in draw_cpu_usage() 1159 for (sample = c->io_samples; sample; sample = sample->next) { in draw_io_bars() [all …]
|
A D | builtin-script.c | 795 printed += fprintf(fp, "%5d/%-5d ", sample->pid, sample->tid); in perf_sample__fprintf_start() 1337 len = grab_bb(buffer, sample->ip, sample->ip, in perf_sample__fprintf_brstackinsn() 1526 if (!PRINT_FIELD(IPC) || !sample->cyc_cnt || !sample->insn_cnt) in perf_sample__fprintf_ipc() 1529 ipc = (sample->insn_cnt * 100) / sample->cyc_cnt; in perf_sample__fprintf_ipc() 2060 .sample = sample, in perf_sample__fprint_metric() 2179 sample->raw_data, sample->raw_size, fp); in process_event() 2571 return print_event(tool, event, sample, machine, sample->pid, in process_cgroup_event() 2640 return print_event(tool, event, sample, machine, sample->pid, in process_switch_event() 2661 return print_event(tool, event, sample, machine, sample->pid, in process_lost_event() 2695 return print_event(tool, event, sample, machine, sample->pid, in process_bpf_events() [all …]
|
A D | builtin-kwork.c | 227 atom->time = sample->time; in atom_new() 361 kwork->timeend = sample->time; in profile_update_timespan() 366 struct perf_sample *sample) in profile_event_match() argument 369 u64 time = sample->time; in profile_event_match() 479 u64 exit_time = sample->time; in report_update_exit_event() 534 u64 entry_time = sample->time; in latency_update_entry_event() 598 thread = machine__findnew_thread(machine, sample->pid, sample->pid); in timehist_save_callchain() 814 work->cpu = sample->cpu; in irq_work_init() 936 work->cpu = sample->cpu; in softirq_work_init() 1025 sample, "function"); in workqueue_work_init() [all …]
|
A D | builtin-sched.c | 866 int cpu = sample->cpu; in replay_switch_event() 1562 .cpu = sample->cpu, in map_switch_event() 1799 thread = machine__find_thread(machine, sample->pid, sample->tid); in perf_sched__process_comm() 2056 if (i == sample->cpu) in timehist_print_sample() 2183 thread = machine__findnew_thread(machine, sample->pid, sample->pid); in save_task_callchain() 2342 sample->tid ?: sample->pid); in timehist_get_thread() 2345 sample->tid); in timehist_get_thread() 2406 thread = machine__findnew_thread(machine, sample->pid, sample->tid); in timehist_print_wakeup_event() 2489 thread = machine__findnew_thread(machine, sample->pid, sample->tid); in timehist_print_migration_event() 2673 evsel__save_time(evsel, sample->time, sample->cpu); in timehist_sched_change_event() [all …]
|
/linux-6.3-rc2/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() 65 __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 49 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf() 50 if (!sample) { in test_ringbuf() 55 sample->pid = pid; in test_ringbuf() 56 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf() 57 sample->value = value; in test_ringbuf() 59 sample->seq = seq++; in test_ringbuf() 62 if (sample->seq & 1) { in test_ringbuf() 64 bpf_ringbuf_output(&ringbuf, sample, sizeof(*sample), flags); in test_ringbuf() [all …]
|
A D | test_ringbuf_multi.c | 9 struct sample { struct 60 struct sample *sample; in test_ringbuf() local 73 sample = bpf_ringbuf_reserve(rb, sizeof(*sample), 0); in test_ringbuf() 74 if (!sample) { in test_ringbuf() 79 sample->pid = pid; in test_ringbuf() 80 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf() 81 sample->value = value; in test_ringbuf() 83 sample->seq = total; in test_ringbuf() 86 bpf_ringbuf_submit(sample, 0); in test_ringbuf()
|
A D | dynptr_success.c | 14 struct sample { struct 121 struct sample *sample; in ringbuf_callback() local 125 sample = bpf_dynptr_data(ptr, 0, sizeof(*sample)); in ringbuf_callback() 126 if (!sample) in ringbuf_callback() 129 sample->pid += index; in ringbuf_callback() 138 struct sample *sample; in test_ringbuf() local 148 sample = err ? NULL : bpf_dynptr_data(&ptr, 0, sizeof(*sample)); in test_ringbuf() 149 if (!sample) { in test_ringbuf() 154 sample->pid = 10; in test_ringbuf() 159 if (sample->pid != 55) in test_ringbuf()
|
A D | dynptr_fail.c | 45 struct sample { struct 94 struct sample *sample; in ringbuf_missing_release2() local 99 sample = bpf_dynptr_data(&ptr1, 0, sizeof(*sample)); in ringbuf_missing_release2() 172 struct sample *sample; in ringbuf_invalid_api() local 175 sample = bpf_dynptr_data(&ptr, 0, sizeof(*sample)); in ringbuf_invalid_api() 176 if (!sample) in ringbuf_invalid_api() 273 struct sample *sample; in data_slice_use_after_release1() local 276 sample = bpf_dynptr_data(&ptr, 0, sizeof(*sample)); in data_slice_use_after_release1() 277 if (!sample) in data_slice_use_after_release1() 305 struct sample *sample; in data_slice_use_after_release2() local [all …]
|
A D | user_ringbuf_success.c | 40 const struct sample *sample = NULL; in record_sample() local 41 struct sample stack_sample; in record_sample() 53 sample = bpf_dynptr_data(dynptr, 0, sizeof(*sample)); in record_sample() 54 if (!sample) { in record_sample() 59 stack_sample = *sample; in record_sample() 165 struct sample *sample = NULL; in test_user_ringbuf_protocol() local 187 struct sample *sample = NULL; in test_user_ringbuf() local
|
/linux-6.3-rc2/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 | 117 (sample['cpu'], sample['addr'], sample['phys_addr'], \ 118 sample['ip'], sample['pid'], sample['tid'], \ 119 sample['period'], sample['time'])) 133 cpu = sample["cpu"] 134 pid = sample["pid"] 135 tid = sample["tid"] 141 ip = sample["ip"] 194 print_sample(sample) 213 cpu = sample["cpu"] 214 ip = sample["ip"] [all …]
|
/linux-6.3-rc2/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 | intel-pt.c | 295 intel_pt_dump(pt, sample->aux_sample.data, sample->aux_sample.size); in intel_pt_dump_sample() 1696 sample->cpumode = intel_pt_cpumode(ptq, sample->ip, sample->addr); in intel_pt_prep_b_sample() 1700 event->sample.header.misc = sample->cpumode; in intel_pt_prep_b_sample() 1896 if (!sample->ip) in intel_pt_prep_p_sample() 2224 sample.id = id; in intel_pt_do_synth_pebs_sample() 3109 sample->pid, sample->tid, 0, sample->time, in intel_pt_lost() 3110 sample->machine_pid, sample->vcpu); in intel_pt_lost() 3201 cpu, tid, sample->time, perf_time_to_tsc(sample->time, in intel_pt_process_switch() 3274 return machine__set_current_tid(machine, sample->vcpu, sample->pid, sample->tid); in intel_pt_guest_context_switch() 3435 if (sample->time && sample->time != (u64)-1) in intel_pt_process_event() [all …]
|
A D | event.c | 196 struct perf_sample *sample, in perf_event__process_comm() argument 204 struct perf_sample *sample, in perf_event__process_namespaces() argument 220 struct perf_sample *sample, in perf_event__process_lost() argument 276 struct perf_sample *sample, in perf_event__process_bpf() argument 284 struct perf_sample *sample, in perf_event__process_text_poke() argument 565 struct perf_sample *sample, in perf_event__process() argument 692 thread = machine__findnew_thread(machine, sample->pid, sample->tid); in machine__resolve() 697 thread__find_map(thread, sample->cpumode, sample->ip, al); in machine__resolve() 706 al->cpu = sample->cpu; in machine__resolve() 802 thread__find_map_fb(thread, sample->cpumode, sample->addr, al); in thread__resolve() [all …]
|
A D | arm-spe.c | 287 sample->cpumode = arm_spe_cpumode(spe, sample->ip); in arm_spe_prep_sample() 288 sample->pid = speq->pid; in arm_spe_prep_sample() 289 sample->tid = speq->tid; in arm_spe_prep_sample() 290 sample->period = 1; in arm_spe_prep_sample() 291 sample->cpu = speq->cpu; in arm_spe_prep_sample() 294 event->sample.header.misc = sample->cpumode; in arm_spe_prep_sample() 335 sample.id = spe_events_id; in arm_spe__synth_mem_sample() 355 sample.id = spe_events_id; in arm_spe__synth_branch_sample() 871 cpu = sample->cpu; in arm_spe_context_switch() 897 if (sample->time && (sample->time != (u64) -1)) in arm_spe_process_event() [all …]
|
/linux-6.3-rc2/tools/perf/arch/x86/util/ |
A D | kvm-stat.c | 34 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key() 35 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key() 52 mmio_event_get_key(evsel, sample, key); in mmio_event_begin() 69 mmio_event_get_key(evsel, sample, key); in mmio_event_end() 94 struct perf_sample *sample, in ioport_event_get_key() argument 98 key->info = evsel__intval(evsel, sample, "rw"); in ioport_event_get_key() 102 struct perf_sample *sample, in ioport_event_begin() argument 106 ioport_event_get_key(evsel, sample, key); in ioport_event_begin() 138 struct perf_sample *sample, in msr_event_get_key() argument 146 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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/tools/perf/util/scripting-engines/ |
A D | trace-event-python.c | 423 sample, NULL, NULL, in python_process_callchain() 664 struct perf_sample *sample, in set_sample_read_in_dict() argument 861 (const char *)sample->raw_data, sample->raw_size)); in get_perf_sample_dict() 875 if (sample->machine_pid) { in get_perf_sample_dict() 893 if (sample->flags) in get_perf_sample_dict() 897 if (sample->insn_cnt && sample->cyc_cnt) { in get_perf_sample_dict() 922 int cpu = sample->cpu; in python_process_tracepoint() 923 void *data = sample->raw_data; in python_process_tracepoint() 1311 tuple_set_bytes(t, 2, es->sample->raw_data, es->sample->raw_size); in python_export_synth() 1387 struct perf_sample *sample, in python_export_context_switch() argument [all …]
|
/linux-6.3-rc2/tools/perf/dlfilters/ |
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 …]
|
/linux-6.3-rc2/samples/ |
A D | Kconfig | 5 You can build and test sample kernel code here. 10 bool "auxdisplay sample" 135 Build sample live patch demonstrations. 141 Builds a sample configfs interface. 162 bool "hidraw sample" 173 bool "pidfd sample" 177 bool "Build seccomp sample code" 184 bool "Timer sample" 188 bool "UHID sample" 191 Build UHID sample program. [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/hwmon/ |
A D | adi,adm1275.yaml | 40 adi,volt-curr-sample-average: 46 adi,power-sample-average: 62 adi,volt-curr-sample-average: 64 adi,power-sample-average: false 74 adi,volt-curr-sample-average: 76 adi,power-sample-average: false 86 adi,volt-curr-sample-average: 88 adi,power-sample-average: 101 adi,volt-curr-sample-average: 103 adi,power-sample-average: [all …]
|