Home
last modified time | relevance | path

Searched full:sample (Results 1 – 25 of 2455) sorted by relevance

12345678910>>...99

/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/
Dsample.json4 "name": "Add valid sample action with mandatory arguments",
7 "sample"
11 "$TC actions flush action sample",
17 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
19 "verifyCmd": "$TC actions get action sample index 2",
20 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
23 "$TC actions flush action sample"
28 "name": "Add valid sample action with mandatory arguments and continue control action",
31 "sample"
35 "$TC actions flush action sample",
[all …]
/kernel/linux/linux-4.19/tools/testing/selftests/tc-testing/tc-tests/actions/
Dsample.json4 "name": "Add valid sample action with mandatory arguments",
7 "sample"
11 "$TC actions flush action sample",
17 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
19 "verifyCmd": "$TC actions get action sample index 2",
20 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
23 "$TC actions flush action sample"
28 "name": "Add valid sample action with mandatory arguments and continue control action",
31 "sample"
35 "$TC actions flush action sample",
[all …]
/kernel/liteos_a/testsuites/kernel/
Dtest.mk57 TESTLIB_SUBDIRS += kernel/sample/kernel_base/ipc
63 TESTLIB_SUBDIRS += kernel/sample/kernel_base/core
68 TESTLIB_SUBDIRS += kernel/sample/kernel_base/mp
73 TESTLIB_SUBDIRS += kernel/sample/kernel_base/mem
78 TESTLIB_SUBDIRS += kernel/sample/kernel_base/vm
83 TESTLIB_SUBDIRS += kernel/sample/kernel_base/misc
88 TESTLIB_SUBDIRS += kernel/sample/kernel_base/om
93 TESTLIB_SUBDIRS += kernel/sample/kernel_base/atomic
101 TESTLIB_SUBDIRS += kernel/sample/kernel_extend/cpp
106 TESTLIB_SUBDIRS += kernel/sample/kernel_extend/cpup
[all …]
DBUILD.gn65 features += [ "sample/kernel_base/ipc:test_ipc" ]
68 features += [ "sample/kernel_base/core:test_core" ]
71 features += [ "sample/kernel_base/mp:test_mp" ]
74 features += [ "sample/kernel_base/mem:test_mem" ]
77 features += [ "sample/kernel_base/misc:test_misc" ]
80 features += [ "sample/kernel_base/om:test_om" ]
83 features += [ "sample/kernel_base/atomic:test_atomic" ]
88 features += [ "sample/kernel_extend/cpp:test_cpp" ]
91 features += [ "sample/kernel_extend/cpup:test_cpup" ]
94 features += [ "sample/kernel_extend/mmu:test_mmu" ]
[all …]
/kernel/linux/linux-4.19/tools/perf/
Dbuiltin-timechart.c279 struct cpu_sample *sample; in pid_put_sample() local
291 sample = zalloc(sizeof(*sample)); in pid_put_sample()
292 assert(sample != NULL); in pid_put_sample()
293 sample->start_time = start; in pid_put_sample()
294 sample->end_time = end; in pid_put_sample()
295 sample->type = type; in pid_put_sample()
296 sample->next = c->samples; in pid_put_sample()
297 sample->cpu = cpu; in pid_put_sample()
298 sample->backtrace = backtrace; in pid_put_sample()
299 c->samples = sample; in pid_put_sample()
[all …]
Dbuiltin-inject.c189 struct perf_sample *sample __maybe_unused, in perf_event__repipe()
197 struct perf_sample *sample __maybe_unused, in perf_event__drop()
205 struct perf_sample *sample, in perf_event__drop_aux() argument
211 inject->aux_id = sample->id; in perf_event__drop_aux()
218 struct perf_sample *sample,
224 struct perf_sample *sample, in perf_event__repipe_sample() argument
230 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
233 build_id__mark_dso_hit(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
240 struct perf_sample *sample, in perf_event__repipe_mmap() argument
245 err = perf_event__process_mmap(tool, event, sample, machine); in perf_event__repipe_mmap()
[all …]
Dbuiltin-script.c410 pr_err("Display of symbols requested but neither sample IP nor " in perf_evsel__check_attr()
411 "sample address\nis selected. Hence, no addresses to convert " in perf_evsel__check_attr()
423 "sample IP, sample address, brstack, brstacksym, or brstackoff.\n"); in perf_evsel__check_attr()
427 pr_err("Display of source line number requested but sample IP is not\n" in perf_evsel__check_attr()
568 static int perf_sample__fprintf_iregs(struct perf_sample *sample, in perf_sample__fprintf_iregs() argument
571 struct regs_dump *regs = &sample->intr_regs; in perf_sample__fprintf_iregs()
587 static int perf_sample__fprintf_uregs(struct perf_sample *sample, in perf_sample__fprintf_uregs() argument
590 struct regs_dump *regs = &sample->user_regs; in perf_sample__fprintf_uregs()
608 static int perf_sample__fprintf_start(struct perf_sample *sample, in perf_sample__fprintf_start() argument
628 printed += fprintf(fp, "%5d/%-5d ", sample->pid, sample->tid); in perf_sample__fprintf_start()
[all …]
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-timechart.c273 struct cpu_sample *sample; in pid_put_sample() local
285 sample = zalloc(sizeof(*sample)); in pid_put_sample()
286 assert(sample != NULL); in pid_put_sample()
287 sample->start_time = start; in pid_put_sample()
288 sample->end_time = end; in pid_put_sample()
289 sample->type = type; in pid_put_sample()
290 sample->next = c->samples; in pid_put_sample()
291 sample->cpu = cpu; in pid_put_sample()
292 sample->backtrace = backtrace; in pid_put_sample()
293 c->samples = sample; in pid_put_sample()
[all …]
Dbuiltin-inject.c212 struct perf_sample *sample __maybe_unused, in perf_event__repipe()
220 struct perf_sample *sample __maybe_unused, in perf_event__drop()
228 struct perf_sample *sample, in perf_event__drop_aux() argument
234 inject->aux_id = sample->id; in perf_event__drop_aux()
242 struct perf_sample *sample) in perf_inject__cut_auxtrace_sample() argument
244 size_t sz1 = sample->aux_sample.data - (void *)event; in perf_inject__cut_auxtrace_sample()
245 size_t sz2 = event->header.size - sample->aux_sample.size - sz1; in perf_inject__cut_auxtrace_sample()
263 struct perf_sample *sample,
269 struct perf_sample *sample, in perf_event__repipe_sample() argument
278 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample()
[all …]
Dbuiltin-script.c452 pr_err("Display of symbols requested but neither sample IP nor " in evsel__check_attr()
453 "sample address\navailable. Hence, no addresses to convert " in evsel__check_attr()
468 pr_err("Display of source line number requested but sample IP is not\n" in evsel__check_attr()
678 static int perf_sample__fprintf_iregs(struct perf_sample *sample, in perf_sample__fprintf_iregs() argument
681 return perf_sample__fprintf_regs(&sample->intr_regs, in perf_sample__fprintf_iregs()
685 static int perf_sample__fprintf_uregs(struct perf_sample *sample, in perf_sample__fprintf_uregs() argument
688 return perf_sample__fprintf_regs(&sample->user_regs, in perf_sample__fprintf_uregs()
693 struct perf_sample *sample, in perf_sample__fprintf_start() argument
716 printed += fprintf(fp, "%5d/%-5d ", sample->pid, sample->tid); in perf_sample__fprintf_start()
718 printed += fprintf(fp, "%5d ", sample->pid); in perf_sample__fprintf_start()
[all …]
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
Ddsp_audio.c105 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 …]
/kernel/linux/linux-4.19/drivers/isdn/mISDN/
Ddsp_audio.c105 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 …]
/kernel/linux/linux-5.10/samples/
DKconfig3 bool "Sample kernel code"
5 You can build and test sample kernel code here.
10 bool "auxdisplay sample"
35 tristate "Build sample module for kernel access to Ftrace instancess"
45 different kobject sample modules showing how to use kobjects,
72 different kfifo sample modules showing how to use the
85 tristate "Build qmi client sample -- loadable modules only"
91 Build an QMI client sample driver, which demonstrates how to
95 tristate "Build rpmsg client sample -- loadable modules only"
98 Build an rpmsg client sample driver, which demonstrates how
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_ringbuf.c9 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()
63 /* copy from reserved sample to a new one... */ in test_ringbuf()
[all …]
Dtest_ringbuf_multi.c9 struct sample { struct
48 struct sample *sample; in test_ringbuf() local
61 sample = bpf_ringbuf_reserve(rb, sizeof(*sample), 0); in test_ringbuf()
62 if (!sample) { in test_ringbuf()
67 sample->pid = pid; in test_ringbuf()
68 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf()
69 sample->value = value; in test_ringbuf()
71 sample->seq = total; in test_ringbuf()
74 bpf_ringbuf_submit(sample, 0); in test_ringbuf()
/kernel/linux/linux-4.19/samples/
DKconfig2 bool "Sample kernel code"
5 You can build and test sample kernel code here.
27 different kobject sample modules showing how to use kobjects,
54 different kfifo sample modules showing how to use the
67 tristate "Build qmi client sample -- loadable modules only"
73 Build an QMI client sample driver, which demonstrates how to
77 tristate "Build rpmsg client sample -- loadable modules only"
80 Build an rpmsg client sample driver, which demonstrates how
88 Build sample live patch demonstrations.
91 tristate "Build configfs patching sample -- loadable modules only"
[all …]
/kernel/linux/linux-4.19/tools/perf/scripts/python/
Dintel-pt-events.py76 def print_common_start(comm, sample, name): argument
77 ts = sample["time"]
78 cpu = sample["cpu"]
79 pid = sample["pid"]
80 tid = sample["tid"]
83 def print_common_ip(sample, symbol, dso): argument
84 ip = sample["ip"]
89 sample = param_dict["sample"]
106 print_common_start(comm, sample, name)
108 print_common_ip(sample, symbol, dso)
[all …]
/kernel/liteos_m/testsuites/
DBUILD.gn54 "sample/cmsis:test_cmsis",
55 "sample/kernel/atomic:test_atomic",
56 "sample/kernel/event:test_event",
57 "sample/kernel/hwi:test_hwi",
58 "sample/kernel/mem:test_mem",
59 "sample/kernel/mux:test_mux",
60 "sample/kernel/power:test_pm",
61 "sample/kernel/queue:test_queue",
62 "sample/kernel/sem:test_sem",
63 "sample/kernel/swtmr:test_swtmr",
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Dintel-pt-events.py80 def print_common_start(comm, sample, name): argument
81 ts = sample["time"]
82 cpu = sample["cpu"]
83 pid = sample["pid"]
84 tid = sample["tid"]
89 def print_common_ip(sample, symbol, dso): argument
90 ip = sample["ip"]
95 sample = param_dict["sample"]
112 print_common_start(comm, sample, name)
114 print_common_ip(sample, symbol, dso)
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dintel-pt.c243 struct perf_sample *sample) in intel_pt_dump_sample() argument
249 intel_pt_dump(pt, sample->aux_sample.data, sample->aux_sample.size); in intel_pt_dump_sample()
946 struct perf_sample *sample) in intel_pt_add_callchain() argument
949 sample->pid, in intel_pt_add_callchain()
950 sample->tid); in intel_pt_add_callchain()
952 thread_stack__sample_late(thread, sample->cpu, pt->chain, in intel_pt_add_callchain()
953 pt->synth_opts.callchain_sz + 1, sample->ip, in intel_pt_add_callchain()
956 sample->callchain = pt->chain; in intel_pt_add_callchain()
984 struct perf_sample *sample) in intel_pt_add_br_stack() argument
987 sample->pid, in intel_pt_add_br_stack()
[all …]
/kernel/linux/linux-4.19/tools/perf/util/
Dthread-stack.c35 * @ref: external reference (e.g. db_id of sample)
427 struct perf_sample *sample, in thread_stack__bottom() argument
436 if (sample->ip) { in thread_stack__bottom()
437 ip = sample->ip; in thread_stack__bottom()
439 } else if (sample->addr) { in thread_stack__bottom()
440 ip = sample->addr; in thread_stack__bottom()
451 return thread_stack__push_cp(thread->ts, ip, sample->time, ref, cp, in thread_stack__bottom()
457 struct perf_sample *sample, in thread_stack__no_call_return() argument
466 if (sample->ip >= ks && sample->addr < ks) { in thread_stack__no_call_return()
470 sample->time, ref, in thread_stack__no_call_return()
[all …]
Dintel-pt.c1061 struct perf_sample *sample) in intel_pt_prep_b_sample() argument
1064 sample->time = tsc_to_perf_time(ptq->timestamp, &pt->tc); in intel_pt_prep_b_sample()
1066 sample->ip = ptq->state->from_ip; in intel_pt_prep_b_sample()
1067 sample->cpumode = intel_pt_cpumode(pt, sample->ip); in intel_pt_prep_b_sample()
1068 sample->pid = ptq->pid; in intel_pt_prep_b_sample()
1069 sample->tid = ptq->tid; in intel_pt_prep_b_sample()
1070 sample->addr = ptq->state->to_ip; in intel_pt_prep_b_sample()
1071 sample->period = 1; in intel_pt_prep_b_sample()
1072 sample->cpu = ptq->cpu; in intel_pt_prep_b_sample()
1073 sample->flags = ptq->flags; in intel_pt_prep_b_sample()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dxt_rateest.c18 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 …]
/kernel/linux/linux-4.19/net/netfilter/
Dxt_rateest.c21 struct gnet_stats_rate_est64 sample = {0}; in xt_rateest_mt() local
25 gen_estimator_read(&info->est1->rate_est, &sample); in xt_rateest_mt()
28 bps1 = info->bps1 >= sample.bps ? info->bps1 - sample.bps : 0; in xt_rateest_mt()
29 pps1 = info->pps1 >= sample.pps ? info->pps1 - sample.pps : 0; in xt_rateest_mt()
31 bps1 = sample.bps; in xt_rateest_mt()
32 pps1 = sample.pps; in xt_rateest_mt()
39 gen_estimator_read(&info->est2->rate_est, &sample); in xt_rateest_mt()
42 bps2 = info->bps2 >= sample.bps ? info->bps2 - sample.bps : 0; in xt_rateest_mt()
43 pps2 = info->pps2 >= sample.pps ? info->pps2 - sample.pps : 0; in xt_rateest_mt()
45 bps2 = sample.bps; in xt_rateest_mt()
[all …]
/kernel/linux/linux-4.19/drivers/oprofile/
Dcpu_buffer.c132 * This function prepares the cpu buffer to write a sample.
138 * op_cpu_buffer_write_commit() after preparing the sample. In case of
140 * sample.
148 size * sizeof(entry->sample->data[0])); in op_cpu_buffer_write_reserve()
151 entry->sample = ring_buffer_event_data(entry->event); in op_cpu_buffer_write_reserve()
153 entry->data = entry->sample->data; in op_cpu_buffer_write_reserve()
155 return entry->sample; in op_cpu_buffer_write_reserve()
171 entry->sample = ring_buffer_event_data(e); in op_cpu_buffer_read_entry()
173 / sizeof(entry->sample->data[0]); in op_cpu_buffer_read_entry()
174 entry->data = entry->sample->data; in op_cpu_buffer_read_entry()
[all …]

12345678910>>...99