/linux-6.14.4/tools/testing/selftests/tc-testing/tc-tests/actions/ |
D | sample.json | 4 "name": "Add valid sample action with mandatory arguments", 7 "sample" 14 "$TC actions flush action sample", 20 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2", 22 "verifyCmd": "$TC actions get action sample index 2", 23 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref", 26 "$TC actions flush action sample" 31 "name": "Add valid sample action with mandatory arguments and continue control action", 34 "sample" 41 "$TC actions flush action sample", [all …]
|
/linux-6.14.4/tools/testing/selftests/ftrace/test.d/event/ |
D | event-mod.tc | 7 rmmod trace-events-sample ||: 8 if ! modprobe trace-events-sample ; then 9 echo "No trace-events sample module - please make CONFIG_SAMPLE_TRACE_EVENTS=m" 12 trap "rmmod trace-events-sample" EXIT 15 echo ":mod:trace-events-sample" > set_event 20 grep -q sample-trace:foo_bar set_event 21 grep -q sample-trace:foo_bar_with_cond set_event 22 grep -q sample-trace:foo_bar_with_fn set_event 25 val=`cat events/sample-trace/enable` 49 val=`cat events/sample-trace/enable` [all …]
|
/linux-6.14.4/tools/perf/ |
D | builtin-timechart.c | 286 struct cpu_sample *sample; in pid_put_sample() local 295 sample = zalloc(sizeof(*sample)); in pid_put_sample() 296 assert(sample != NULL); in pid_put_sample() 297 sample->start_time = start; in pid_put_sample() 298 sample->end_time = end; in pid_put_sample() 299 sample->type = type; in pid_put_sample() 300 sample->next = c->samples; in pid_put_sample() 301 sample->cpu = cpu; in pid_put_sample() 302 sample->backtrace = backtrace; in pid_put_sample() 303 c->samples = sample; in pid_put_sample() [all …]
|
D | builtin-script.c | 507 pr_err("Display of symbols requested but neither sample IP nor " in evsel__check_attr() 508 "sample address\navailable. Hence, no addresses to convert " in evsel__check_attr() 523 pr_err("Display of source line number requested but sample IP is not\n" in evsel__check_attr() 783 static int perf_sample__fprintf_iregs(struct perf_sample *sample, in perf_sample__fprintf_iregs() argument 786 return perf_sample__fprintf_regs(&sample->intr_regs, in perf_sample__fprintf_iregs() 790 static int perf_sample__fprintf_uregs(struct perf_sample *sample, in perf_sample__fprintf_uregs() argument 793 return perf_sample__fprintf_regs(&sample->user_regs, in perf_sample__fprintf_uregs() 798 struct perf_sample *sample, in perf_sample__fprintf_start() argument 821 if (PRINT_FIELD(MACHINE_PID) && sample->machine_pid) in perf_sample__fprintf_start() 822 printed += fprintf(fp, "VM:%5d ", sample->machine_pid); in perf_sample__fprintf_start() [all …]
|
/linux-6.14.4/drivers/isdn/mISDN/ |
D | dsp_audio.c | 105 static unsigned char linear2ulaw(short sample) in linear2ulaw() argument 127 /* Get the sample into sign-magnitude. */ in linear2ulaw() 128 sign = (sample >> 8) & 0x80; /* set aside the sign */ in linear2ulaw() 130 sample = -sample; /* get magnitude */ in linear2ulaw() 133 sample = sample + BIAS; in linear2ulaw() 134 exponent = exp_lut[(sample >> 7) & 0xFF]; in linear2ulaw() 135 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw() 180 * the seven bit sample is the number of every second alaw-sample ordered by 187 * generate table for conversion law from/to 7-bit alaw-like sample * 210 /* spl is the source: the law-sample (converted to alaw) */ in dsp_audio_generate_seven() [all …]
|
/linux-6.14.4/tools/testing/selftests/bpf/progs/ |
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() 53 /* test using 'sample' (PTR_TO_MEM | MEM_ALLOC) as map key arg in test_ringbuf_mem_map_key() [all …]
|
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() 62 /* copy from reserved sample to a new one... */ in test_ringbuf() [all …]
|
D | test_ringbuf_n.c | 14 struct sample { struct 31 struct sample *sample; in test_ringbuf_n() argument 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()
|
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-6.14.4/tools/perf/scripts/python/ |
D | intel-pt-events.py | 231 def common_start_str(comm, sample): argument 232 ts = sample["time"] 233 cpu = sample["cpu"] 234 pid = sample["pid"] 235 tid = sample["tid"] 236 if "machine_pid" in sample: 237 machine_pid = sample["machine_pid"] 238 vcpu = sample["vcpu"] 243 def print_common_start(comm, sample, name): argument 244 flags_disp = get_optional_null(sample, "flags_disp") [all …]
|
D | arm-cs-trace-disasm.py | 64 args.add_argument("--start-time", type=int_arg, help="Monotonic clock time of sample to start from.… 66 args.add_argument("--stop-time", type=int_arg, help="Monotonic clock time of sample to stop at. " 68 args.add_argument("--start-sample", type=int_arg, help="Index of sample to start from. " 70 args.add_argument("--stop-sample", type=int_arg, help="Index of sample to stop at. " 80 print("--start-sample must less than --stop-sample") 176 def print_sample(sample): argument 177 print("Sample = { cpu: %04d addr: 0x%016x phys_addr: 0x%016x ip: 0x%016x " \ 179 (sample['cpu'], sample['addr'], sample['phys_addr'], \ 180 sample['ip'], sample['pid'], sample['tid'], \ 181 sample['period'], sample['time'], sample_idx)) [all …]
|
/linux-6.14.4/samples/ |
D | Kconfig | 3 bool "Sample kernel code" 5 You can build and test sample kernel code here. 10 bool "auxdisplay sample" 57 tristate "Build sample module for kernel access to Ftrace instancess" 67 different kobject sample modules showing how to use kobjects, 101 different kfifo sample modules showing how to use the 114 tristate "Build qmi client sample -- loadable modules only" 120 Build an QMI client sample driver, which demonstrates how to 124 tristate "Build rpmsg client sample -- loadable modules only" 127 Build an rpmsg client sample driver, which demonstrates how [all …]
|
/linux-6.14.4/tools/perf/util/ |
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 19 return callchain_param.record_mode == CALLCHAIN_FP && sample->user_regs.regs in get_leaf_frame_caller_enabled() 20 && sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_LR); in get_leaf_frame_caller_enabled() 31 u64 get_leaf_frame_caller_aarch64(struct perf_sample *sample, struct thread *thread, int usr_idx) in get_leaf_frame_caller_aarch64() argument 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() [all …]
|
D | bpf-filter.l | 14 static int sample(enum perf_bpf_filter_term term) in sample() function 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() 33 perf_bpf_filter_lval.sample.term = term; in sample_path() 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); } [all …]
|
D | intel-pt.c | 289 struct perf_sample *sample) in intel_pt_dump_sample() argument 295 intel_pt_dump(pt, sample->aux_sample.data, sample->aux_sample.size); in intel_pt_dump_sample() 1236 struct perf_sample *sample) in intel_pt_add_callchain() argument 1239 sample->pid, in intel_pt_add_callchain() 1240 sample->tid); in intel_pt_add_callchain() 1242 thread_stack__sample_late(thread, sample->cpu, pt->chain, in intel_pt_add_callchain() 1243 pt->synth_opts.callchain_sz + 1, sample->ip, in intel_pt_add_callchain() 1246 sample->callchain = pt->chain; in intel_pt_add_callchain() 1274 struct perf_sample *sample) in intel_pt_add_br_stack() argument 1277 sample->pid, in intel_pt_add_br_stack() [all …]
|
D | s390-sample-raw.c | 12 * sample was taken from. 28 #include "sample-raw.h" 31 #include "util/sample.h" 47 static bool s390_cpumcfdg_testctr(struct perf_sample *sample) in s390_cpumcfdg_testctr() argument 49 size_t len = sample->raw_size, offset = 0; in s390_cpumcfdg_testctr() 50 unsigned char *buf = sample->raw_data; in s390_cpumcfdg_testctr() 64 * raw data block in the sample causes the perf tool in s390_cpumcfdg_testctr() 66 * of the sample a multiple of eight bytes again. in s390_cpumcfdg_testctr() 180 static void s390_cpumcfdg_dump(struct perf_pmu *pmu, struct perf_sample *sample) in s390_cpumcfdg_dump() argument 182 size_t i, len = sample->raw_size, offset = 0; in s390_cpumcfdg_dump() [all …]
|
D | event.c | 49 [PERF_RECORD_SAMPLE] = "SAMPLE", 221 struct perf_sample *sample, in perf_event__process_comm() argument 224 return machine__process_comm_event(machine, event, sample); in perf_event__process_comm() 229 struct perf_sample *sample, in perf_event__process_namespaces() argument 232 return machine__process_namespaces_event(machine, event, sample); in perf_event__process_namespaces() 237 struct perf_sample *sample, in perf_event__process_cgroup() argument 240 return machine__process_cgroup_event(machine, event, sample); in perf_event__process_cgroup() 245 struct perf_sample *sample, in perf_event__process_lost() argument 248 return machine__process_lost_event(machine, event, sample); in perf_event__process_lost() 253 struct perf_sample *sample __maybe_unused, in perf_event__process_aux() [all …]
|
/linux-6.14.4/tools/perf/arch/x86/util/ |
D | kvm-stat.c | 30 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument 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() 42 struct perf_sample *sample, struct event_key *key) in mmio_event_begin() argument 50 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin() 51 mmio_event_get_key(evsel, sample, key); in mmio_event_begin() 58 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, in mmio_event_end() argument 67 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) { in mmio_event_end() 68 mmio_event_get_key(evsel, sample, key); in mmio_event_end() 93 struct perf_sample *sample, in ioport_event_get_key() argument [all …]
|
/linux-6.14.4/net/netfilter/ |
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.14.4/tools/perf/util/scripting-engines/ |
D | trace-event-python.c | 391 static PyObject *python_process_callchain(struct perf_sample *sample, in python_process_callchain() argument 402 if (!symbol_conf.use_callchain || !sample->callchain) in python_process_callchain() 407 sample, NULL, NULL, in python_process_callchain() 483 static PyObject *python_process_brstack(struct perf_sample *sample, in python_process_brstack() argument 486 struct branch_stack *br = sample->branch_stack; in python_process_brstack() 487 struct branch_entry *entries = perf_sample__branch_entries(sample); in python_process_brstack() 523 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 529 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack() 571 static PyObject *python_process_brstacksym(struct perf_sample *sample, in python_process_brstacksym() argument 574 struct branch_stack *br = sample->branch_stack; in python_process_brstacksym() [all …]
|
/linux-6.14.4/samples/qmi/ |
D | qmi_sample_client.c | 3 * Sample in-kernel QMI client driver 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() 464 ret = qmi_handle_init(&sample->qmi, TEST_DATA_REQ_MAX_MSG_LEN_V01, in qmi_sample_probe() 471 ret = kernel_connect(sample->qmi.sock, (struct sockaddr *)sq, in qmi_sample_probe() 480 sample->de_dir = debugfs_create_dir(path, qmi_debug_dir); 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() [all …]
|
/linux-6.14.4/tools/testing/selftests/rust/ |
D | test_probe_samples.sh | 6 # This script tests whether the rust sample modules can 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-6.14.4/tools/perf/Documentation/ |
D | perf-mem.txt | 26 On Arm64 this uses SPE to sample load and store operations, therefore hardware 47 Record/Report sample physical addresses 50 Record/Report sample data address page size 88 one sample per line. 97 - symbol_daddr: name of data symbol being executed on at the time of sample 98 - symbol_iaddr: name of code symbol being executed on at the time of sample 100 on at the time of the sample 101 - locked: whether the bus was locked at the time of the sample 102 - tlb: type of tlb access for the data at the time of the sample 103 - mem: type of memory access for the data at the time of the sample [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/hwmon/ |
D | adi,adm1275.yaml | 38 adi,volt-curr-sample-average: 44 adi,power-sample-average: 61 adi,volt-curr-sample-average: 63 adi,power-sample-average: false 73 adi,volt-curr-sample-average: 75 adi,power-sample-average: false 86 adi,volt-curr-sample-average: 88 adi,power-sample-average: 102 adi,volt-curr-sample-average: 104 adi,power-sample-average: [all …]
|
/linux-6.14.4/tools/testing/selftests/drivers/net/mlxsw/ |
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 conflict test" [all …]
|