Home
last modified time | relevance | path

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

12345678910>>...137

/kernel/linux/linux-6.6/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-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/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 …]
/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-6.6/tools/perf/
Dbuiltin-timechart.c286 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 …]
Dbuiltin-script.c490 pr_err("Display of symbols requested but neither sample IP nor " in evsel__check_attr()
491 "sample address\navailable. Hence, no addresses to convert " in evsel__check_attr()
506 pr_err("Display of source line number requested but sample IP is not\n" in evsel__check_attr()
759 static int perf_sample__fprintf_iregs(struct perf_sample *sample, in perf_sample__fprintf_iregs() argument
762 return perf_sample__fprintf_regs(&sample->intr_regs, in perf_sample__fprintf_iregs()
766 static int perf_sample__fprintf_uregs(struct perf_sample *sample, in perf_sample__fprintf_uregs() argument
769 return perf_sample__fprintf_regs(&sample->user_regs, in perf_sample__fprintf_uregs()
774 struct perf_sample *sample, in perf_sample__fprintf_start() argument
785 if (PRINT_FIELD(MACHINE_PID) && sample->machine_pid) in perf_sample__fprintf_start()
786 printed += fprintf(fp, "VM:%5d ", sample->machine_pid); 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.c451 pr_err("Display of symbols requested but neither sample IP nor " in evsel__check_attr()
452 "sample address\navailable. Hence, no addresses to convert " in evsel__check_attr()
467 pr_err("Display of source line number requested but sample IP is not\n" in evsel__check_attr()
677 static int perf_sample__fprintf_iregs(struct perf_sample *sample, in perf_sample__fprintf_iregs() argument
680 return perf_sample__fprintf_regs(&sample->intr_regs, in perf_sample__fprintf_iregs()
684 static int perf_sample__fprintf_uregs(struct perf_sample *sample, in perf_sample__fprintf_uregs() argument
687 return perf_sample__fprintf_regs(&sample->user_regs, in perf_sample__fprintf_uregs()
692 struct perf_sample *sample, in perf_sample__fprintf_start() argument
715 printed += fprintf(fp, "%5d/%-5d ", sample->pid, sample->tid); in perf_sample__fprintf_start()
717 printed += fprintf(fp, "%5d ", sample->pid); in perf_sample__fprintf_start()
[all …]
/kernel/linux/linux-6.6/samples/
DKconfig3 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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dtest_ringbuf_map_key.c10 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 …]
Dtest_ringbuf.c10 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 …]
Dtest_ringbuf_multi.c9 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()
/kernel/linux/linux-6.6/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/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-6.6/tools/perf/scripts/python/
Dintel-pt-events.py231 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 …]
Darm-cs-trace-disasm.py113 def print_sample(sample): argument
114 print("Sample = { cpu: %04d addr: 0x%016x phys_addr: 0x%016x ip: 0x%016x " \
116 (sample['cpu'], sample['addr'], sample['phys_addr'], \
117 sample['ip'], sample['pid'], sample['tid'], \
118 sample['period'], sample['time']))
129 def common_start_str(comm, sample): argument
130 sec = int(sample["time"] / 1000000000)
131 ns = sample["time"] % 1000000000
132 cpu = sample["cpu"]
133 pid = sample["pid"]
[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-6.6/tools/perf/util/
Darm64-frame-pointer-unwind-support.c17 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 …]
Dintel-pt.c291 struct perf_sample *sample) in intel_pt_dump_sample() argument
297 intel_pt_dump(pt, sample->aux_sample.data, sample->aux_sample.size); in intel_pt_dump_sample()
1238 struct perf_sample *sample) in intel_pt_add_callchain() argument
1241 sample->pid, in intel_pt_add_callchain()
1242 sample->tid); in intel_pt_add_callchain()
1244 thread_stack__sample_late(thread, sample->cpu, pt->chain, in intel_pt_add_callchain()
1245 pt->synth_opts.callchain_sz + 1, sample->ip, in intel_pt_add_callchain()
1248 sample->callchain = pt->chain; in intel_pt_add_callchain()
1276 struct perf_sample *sample) in intel_pt_add_br_stack() argument
1279 sample->pid, in intel_pt_add_br_stack()
[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/liteos_m/testsuites/
DBUILD.gn62 "sample/cmsis:test_cmsis",
63 "sample/kernel/atomic:test_atomic",
64 "sample/kernel/event:test_event",
65 "sample/kernel/hwi:test_hwi",
66 "sample/kernel/mem:test_mem",
67 "sample/kernel/mux:test_mux",
68 "sample/kernel/power:test_pm",
69 "sample/kernel/queue:test_queue",
70 "sample/kernel/sem:test_sem",
71 "sample/kernel/swtmr:test_swtmr",
[all …]
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/
Dkvm-stat.c30 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 …]
/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 …]

12345678910>>...137