Home
last modified time | relevance | path

Searched refs:samples (Results 1 - 25 of 202) sorted by relevance

123456789

/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
H A Dseccomp_benchmark.c19 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument
27 for (i = 0; i < samples; i++) { in timing()
48 unsigned long long i, samples, step = 9973; in calibrate() local
54 samples = 0; in calibrate()
64 samples += step; in calibrate()
70 return samples * seconds; in calibrate()
83 unsigned long long samples; in main() local
91 samples = strtoull(argv[1], NULL, 0); in main()
93 samples = calibrate(); in main()
95 printf("Benchmarking %llu syscalls...\n", samples); in main()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/
H A Dseccomp_benchmark.c23 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument
31 for (i = 0; i < samples; i++) { in timing()
52 unsigned long long i, samples, step = 9973; in calibrate() local
58 samples = 0; in calibrate()
68 samples += step; in calibrate()
74 return samples * seconds; in calibrate()
142 unsigned long long samples, calc; in main() local
157 samples = strtoull(argv[1], NULL, 0); in main()
159 samples = calibrate(); in main()
161 printf("Benchmarking %llu syscalls...\n", samples); in main()
[all...]
/kernel/linux/build/test/moduletest/runtest/bin/
H A Denhancedswap_t_init.sh68 aa start -b ohos.samples.airquality -a ohos.samples.airquality.default
69 aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
70 aa start -b ohos.samples.flashlight -a ohos.samples.flashlight.default
71 aa start -b ohos.samples.clock -a ohos.samples.clock.default
75 aa start -b ohos.samples.distributedcalc -a ohos.samples
[all...]
H A Dmem_debug_t_init.sh56 aa start -b ohos.samples.airquality -a ohos.samples.airquality.default
57 aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
58 aa start -b ohos.samples.flashlight -a ohos.samples.flashlight.default
59 aa start -b ohos.samples.clock -a ohos.samples.clock.default
/kernel/linux/linux-5.10/drivers/media/pci/cx88/
H A Dcx88-dsp.c139 int samples = 5; in noise_magnitude() local
142 /* The last 192 samples are enough for noise detection */ in noise_magnitude()
147 freq_step = (freq_end - freq_start) / (samples - 1); in noise_magnitude()
149 for (i = 0; i < samples; i++) { in noise_magnitude()
154 return (u32)int_sqrt(sum / samples); in noise_magnitude()
240 s16 *samples; in read_rds_samples() local
251 "read RDS samples: current_address=%08x (offset=%08x), sample_count=%d, aud_intstat=%08x\n", in read_rds_samples()
255 samples = kmalloc_array(sample_count, sizeof(*samples), GFP_KERNEL); in read_rds_samples()
256 if (!samples) in read_rds_samples()
274 s16 *samples; cx88_dsp_detect_stereo_sap() local
[all...]
/kernel/linux/linux-6.6/drivers/media/pci/cx88/
H A Dcx88-dsp.c139 int samples = 5; in noise_magnitude() local
142 /* The last 192 samples are enough for noise detection */ in noise_magnitude()
147 freq_step = (freq_end - freq_start) / (samples - 1); in noise_magnitude()
149 for (i = 0; i < samples; i++) { in noise_magnitude()
154 return (u32)int_sqrt(sum / samples); in noise_magnitude()
240 s16 *samples; in read_rds_samples() local
251 "read RDS samples: current_address=%08x (offset=%08x), sample_count=%d, aud_intstat=%08x\n", in read_rds_samples()
255 samples = kmalloc_array(sample_count, sizeof(*samples), GFP_KERNEL); in read_rds_samples()
256 if (!samples) in read_rds_samples()
274 s16 *samples; cx88_dsp_detect_stereo_sap() local
[all...]
/kernel/linux/build/test/moduletest/runtest/bin/mem_debug_t/testcases/bin/
H A Dmem_debug04.sh54 aa start -b ohos.samples.airquality -a ohos.samples.airquality.default
55 aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility
56 aa start -b ohos.samples.flashlight -a ohos.samples.flashlight.default
57 aa start -b ohos.samples.clock -a ohos.samples.clock.default
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
H A Dfreq-step.c111 static void regress(struct sample *samples, int n, double *intercept, in regress() argument
120 x = samples[i].time; in regress()
121 y = samples[i].offset; in regress()
135 x = samples[i].time; in regress()
136 y = samples[i].offset; in regress()
148 struct sample samples[SAMPLES]; in run_test() local
169 get_sample(&samples[i]); in run_test()
173 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
180 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
184 regress(samples in run_test()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
H A Dfreq-step.c111 static void regress(struct sample *samples, int n, double *intercept, in regress() argument
120 x = samples[i].time; in regress()
121 y = samples[i].offset; in regress()
135 x = samples[i].time; in regress()
136 y = samples[i].offset; in regress()
148 struct sample samples[SAMPLES]; in run_test() local
169 get_sample(&samples[i]); in run_test()
173 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
180 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
184 regress(samples in run_test()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/oprofile/cell/
H A Dspu_profiler.c20 static u32 *samples; variable
96 samples[spu * TRACE_ARRAY_SIZE + entry] in spu_pc_extract()
98 samples[(spu + SPUS_PER_TB_ENTRY) * TRACE_ARRAY_SIZE + entry] in spu_pc_extract()
148 * the samples. In the very unlikely case that the processing in profile_spus()
150 * started to process the samples. Make sure only one kernel in profile_spus()
151 * thread is working on the samples array at a time. The in profile_spus()
168 samples + (k * TRACE_ARRAY_SIZE), in profile_spus()
208 /* Allocate arrays for collecting SPU PC samples */ in start_spu_profiling_cycles()
209 samples = kcalloc(SPUS_PER_NODE * TRACE_ARRAY_SIZE, sizeof(u32), in start_spu_profiling_cycles()
212 if (!samples) in start_spu_profiling_cycles()
[all...]
/kernel/linux/linux-5.10/kernel/time/
H A Dposix-cpu-timers.c207 static inline void store_samples(u64 *samples, u64 stime, u64 utime, u64 rtime) in store_samples() argument
209 samples[CPUCLOCK_PROF] = stime + utime; in store_samples()
210 samples[CPUCLOCK_VIRT] = utime; in store_samples()
211 samples[CPUCLOCK_SCHED] = rtime; in store_samples()
214 static void task_sample_cputime(struct task_struct *p, u64 *samples) in task_sample_cputime() argument
219 store_samples(samples, stime, utime, p->se.sum_exec_runtime); in task_sample_cputime()
223 u64 *samples) in proc_sample_cputime_atomic()
230 store_samples(samples, stime, utime, rtime); in proc_sample_cputime_atomic()
259 * @samples: Storage for time samples
222 proc_sample_cputime_atomic(struct task_cputime_atomic *at, u64 *samples) proc_sample_cputime_atomic() argument
267 thread_group_sample_cputime(struct task_struct *tsk, u64 *samples) thread_group_sample_cputime() argument
289 thread_group_start_cputime(struct task_struct *tsk, u64 *samples) thread_group_start_cputime() argument
318 __thread_group_cputime(struct task_struct *tsk, u64 *samples) __thread_group_cputime() argument
336 u64 samples[CPUCLOCK_MAX]; cpu_clock_sample_group() local
794 collect_posix_cputimers(struct posix_cputimers *pct, u64 *samples, struct list_head *firing) collect_posix_cputimers() argument
837 u64 samples[CPUCLOCK_MAX]; check_thread_timers() local
915 u64 samples[CPUCLOCK_MAX]; check_process_timers() local
1030 task_cputimers_expired(const u64 *samples, struct posix_cputimers *pct) task_cputimers_expired() argument
1057 u64 samples[CPUCLOCK_MAX]; fastpath_timer_check() local
1082 u64 samples[CPUCLOCK_MAX]; fastpath_timer_check() local
[all...]
/kernel/linux/linux-6.6/kernel/time/
H A Dposix-cpu-timers.c214 static inline void store_samples(u64 *samples, u64 stime, u64 utime, u64 rtime) in store_samples() argument
216 samples[CPUCLOCK_PROF] = stime + utime; in store_samples()
217 samples[CPUCLOCK_VIRT] = utime; in store_samples()
218 samples[CPUCLOCK_SCHED] = rtime; in store_samples()
221 static void task_sample_cputime(struct task_struct *p, u64 *samples) in task_sample_cputime() argument
226 store_samples(samples, stime, utime, p->se.sum_exec_runtime); in task_sample_cputime()
230 u64 *samples) in proc_sample_cputime_atomic()
237 store_samples(samples, stime, utime, rtime); in proc_sample_cputime_atomic()
265 * @samples: Storage for time samples
229 proc_sample_cputime_atomic(struct task_cputime_atomic *at, u64 *samples) proc_sample_cputime_atomic() argument
273 thread_group_sample_cputime(struct task_struct *tsk, u64 *samples) thread_group_sample_cputime() argument
295 thread_group_start_cputime(struct task_struct *tsk, u64 *samples) thread_group_start_cputime() argument
326 __thread_group_cputime(struct task_struct *tsk, u64 *samples) __thread_group_cputime() argument
344 u64 samples[CPUCLOCK_MAX]; cpu_clock_sample_group() local
858 collect_posix_cputimers(struct posix_cputimers *pct, u64 *samples, struct list_head *firing) collect_posix_cputimers() argument
901 u64 samples[CPUCLOCK_MAX]; check_thread_timers() local
979 u64 samples[CPUCLOCK_MAX]; check_process_timers() local
1094 task_cputimers_expired(const u64 *samples, struct posix_cputimers *pct) task_cputimers_expired() argument
1121 u64 samples[CPUCLOCK_MAX]; fastpath_timer_check() local
1146 u64 samples[CPUCLOCK_MAX]; fastpath_timer_check() local
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
H A Daperfmperf.c27 static DEFINE_PER_CPU(struct aperfmperf_sample, samples);
43 struct aperfmperf_sample *s = this_cpu_ptr(&samples); in aperfmperf_snapshot_khz()
69 s64 time_delta = ktime_ms_delta(now, per_cpu(samples.time, cpu)); in aperfmperf_snapshot_cpu()
93 return per_cpu(samples.khz, cpu); in aperfmperf_get_khz()
131 return per_cpu(samples.khz, cpu); in arch_freq_get_on_cpu()
136 return per_cpu(samples.khz, cpu); in arch_freq_get_on_cpu()
/kernel/linux/linux-5.10/include/trace/events/
H A Dkyber.h18 unsigned int denominator, unsigned int samples),
20 TP_ARGS(q, domain, type, percentile, numerator, denominator, samples),
29 __field( unsigned int, samples )
39 __entry->samples = samples;
42 TP_printk("%d,%d %s %s p%u %u/%u samples=%u",
45 __entry->denominator, __entry->samples)
/kernel/linux/linux-6.6/include/trace/events/
H A Dkyber.h18 unsigned int denominator, unsigned int samples),
20 TP_ARGS(dev, domain, type, percentile, numerator, denominator, samples),
29 __field( unsigned int, samples )
39 __entry->samples = samples;
42 TP_printk("%d,%d %s %s p%u %u/%u samples=%u",
45 __entry->denominator, __entry->samples)
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/
H A Dtest-pcmtest-driver.c172 void *samples; in TEST_F() local
175 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F()
176 ASSERT_NE(samples, NULL); in TEST_F()
183 snd_pcm_format_set_silence(params->format, samples, in TEST_F()
185 it = samples; in TEST_F()
192 write_res = snd_pcm_writei(handle, samples, params->rate * params->time); in TEST_F()
196 free(samples); in TEST_F()
203 * of bytes. In the interleaved mode the buffer will contain samples in the following order:
211 void *samples; in TEST_F() local
214 samples in TEST_F()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_audio.c137 uint32_t samples; in check_audio_bandwidth_hdmi() local
183 samples = h_blank * 10; in check_audio_bandwidth_hdmi()
185 * of Audio samples per line multiplied by 10 - Layout 1) in check_audio_bandwidth_hdmi()
187 samples /= 32; in check_audio_bandwidth_hdmi()
188 samples *= crtc_info->v_active; in check_audio_bandwidth_hdmi()
189 /*Number of samples multiplied by 10, per second */ in check_audio_bandwidth_hdmi()
190 samples *= crtc_info->refresh_rate; in check_audio_bandwidth_hdmi()
191 /*Number of Audio samples per second */ in check_audio_bandwidth_hdmi()
192 samples /= 10; in check_audio_bandwidth_hdmi()
203 samples * in check_audio_bandwidth_hdmi()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_audio.c129 uint32_t samples; in check_audio_bandwidth_hdmi() local
175 samples = h_blank * 10; in check_audio_bandwidth_hdmi()
177 * of Audio samples per line multiplied by 10 - Layout 1) in check_audio_bandwidth_hdmi()
179 samples /= 32; in check_audio_bandwidth_hdmi()
180 samples *= crtc_info->v_active; in check_audio_bandwidth_hdmi()
181 /*Number of samples multiplied by 10, per second */ in check_audio_bandwidth_hdmi()
182 samples *= crtc_info->refresh_rate; in check_audio_bandwidth_hdmi()
183 /*Number of Audio samples per second */ in check_audio_bandwidth_hdmi()
184 samples /= 10; in check_audio_bandwidth_hdmi()
195 samples * in check_audio_bandwidth_hdmi()
[all...]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
H A Dfsl-imx25-tcq.c156 * We measure X/Y with 'sample_count' number of samples and execute a in imx25_setup_queue_4wire()
238 unsigned int samples) in mx25_tcq_create_event_for_4wire()
246 for (i = 0; i < samples; i++) { in mx25_tcq_create_event_for_4wire()
264 dev_dbg(priv->dev, "Dropped samples because of invalid index %d\n", in mx25_tcq_create_event_for_4wire()
270 if (samples != 0) { in mx25_tcq_create_event_for_4wire()
277 /* valid samples, generate a report */ in mx25_tcq_create_event_for_4wire()
290 * if both samples are invalid, in mx25_tcq_create_event_for_4wire()
300 * happens. Take additional samples in this in mx25_tcq_create_event_for_4wire()
312 unsigned int samples; in mx25_tcq_irq_thread() local
317 * Check how many samples ar in mx25_tcq_irq_thread()
236 mx25_tcq_create_event_for_4wire(struct mx25_tcq_priv *priv, u32 *sample_buf, unsigned int samples) mx25_tcq_create_event_for_4wire() argument
[all...]
/kernel/linux/linux-5.10/sound/core/
H A Dpcm_misc.c378 * snd_pcm_format_size - return the byte size of samples on the given format
380 * @samples: sampling rate
382 * Return: The byte size of the given samples for the format, or a
385 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
390 return samples * phys_width / 8; in snd_pcm_format_size()
414 * @samples: the number of samples to set silence
416 * Sets the silence data on the buffer for the given samples.
420 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
428 if (samples in snd_pcm_format_set_silence()
[all...]
/kernel/linux/linux-6.6/drivers/input/touchscreen/
H A Dfsl-imx25-tcq.c156 * We measure X/Y with 'sample_count' number of samples and execute a in imx25_setup_queue_4wire()
238 unsigned int samples) in mx25_tcq_create_event_for_4wire()
246 for (i = 0; i < samples; i++) { in mx25_tcq_create_event_for_4wire()
264 dev_dbg(priv->dev, "Dropped samples because of invalid index %d\n", in mx25_tcq_create_event_for_4wire()
270 if (samples != 0) { in mx25_tcq_create_event_for_4wire()
277 /* valid samples, generate a report */ in mx25_tcq_create_event_for_4wire()
290 * if both samples are invalid, in mx25_tcq_create_event_for_4wire()
300 * happens. Take additional samples in this in mx25_tcq_create_event_for_4wire()
312 unsigned int samples; in mx25_tcq_irq_thread() local
317 * Check how many samples ar in mx25_tcq_irq_thread()
236 mx25_tcq_create_event_for_4wire(struct mx25_tcq_priv *priv, u32 *sample_buf, unsigned int samples) mx25_tcq_create_event_for_4wire() argument
[all...]
/kernel/linux/linux-6.6/sound/core/
H A Dpcm_misc.c382 * snd_pcm_format_size - return the byte size of samples on the given format
384 * @samples: sampling rate
386 * Return: The byte size of the given samples for the format, or a
389 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
394 return samples * phys_width / 8; in snd_pcm_format_size()
418 * @samples: the number of samples to set silence
420 * Sets the silence data on the buffer for the given samples.
424 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
432 if (samples in snd_pcm_format_set_silence()
[all...]
/kernel/linux/build/test/moduletest/runtest/bin/sched_rtg_t/testcases/bin/
H A Dsched_rtg06.sh65 aa start -b ohos.samples.ecg -a ohos.samples.ecg.MainAbility &&
67 PID=$(ps -ef | grep ohos.samples.ecg | grep -v grep | awk '{print $2}')
81 aa force-stop ohos.samples.ecg
/kernel/linux/linux-5.10/tools/perf/util/
H A Dtop.c32 if (top->samples) { in perf_top__header_snprintf()
33 samples_per_sec = top->samples / top->delay_secs; in perf_top__header_snprintf()
35 esamples_percent = (100.0 * top->exact_samples) / top->samples; in perf_top__header_snprintf()
115 top->samples = top->us_samples = top->kernel_samples = in perf_top__reset_sample_counters()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dtop.c32 if (top->samples) { in perf_top__header_snprintf()
33 samples_per_sec = top->samples / top->delay_secs; in perf_top__header_snprintf()
35 esamples_percent = (100.0 * top->exact_samples) / top->samples; in perf_top__header_snprintf()
117 top->samples = top->us_samples = top->kernel_samples = in perf_top__reset_sample_counters()

Completed in 219 milliseconds

123456789