| /tools/testing/selftests/seccomp/ |
| D | seccomp_benchmark.c | 25 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument 33 for (i = 0; i < samples; i++) { in timing() 54 unsigned long long i, samples, step = 9973; in calibrate() local 60 samples = 0; in calibrate() 70 samples += step; in calibrate() 76 return samples * seconds; in calibrate() 186 unsigned long long samples, calc; in main() local 210 samples = strtoull(argv[1], NULL, 0); in main() 212 samples = calibrate(); in main() 214 ksft_print_msg("Benchmarking %llu syscalls...\n", samples); in main() [all …]
|
| /tools/testing/selftests/lkdtm/ |
| D | stack-entropy.sh | 6 samples="${1:-1000}" 26 for i in $(seq 1 $samples); do 29 percent=$(( 100 * $i / $samples )) 39 seen=$(tac "$log" | grep -m1 -B"$samples"0 'Starting stack offset' | \
|
| /tools/testing/selftests/timers/ |
| D | freq-step.c | 111 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 + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, in run_test()
|
| /tools/testing/selftests/alsa/ |
| D | test-pcmtest-driver.c | 172 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() 211 void *samples; in TEST_F() local 214 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F() 215 ASSERT_NE(samples, NULL); in TEST_F() [all …]
|
| D | pcm-test.c | 296 unsigned char *samples = NULL; in test_pcm_time() local 345 samples = malloc((rate * channels * snd_pcm_format_physical_width(format)) / 8); in test_pcm_time() 346 if (!samples) in test_pcm_time() 348 snd_pcm_format_set_silence(format, samples, rate * channels); in test_pcm_time() 389 samples = realloc(samples, (rate * channels * in test_pcm_time() 391 if (!samples) in test_pcm_time() 393 snd_pcm_format_set_silence(format, samples, rate * channels); in test_pcm_time() 476 frames = snd_pcm_writei(handle, samples, rate); in test_pcm_time() 488 frames = snd_pcm_readi(handle, samples, rate); in test_pcm_time() 549 free(samples); in test_pcm_time()
|
| /tools/net/ynl/ |
| D | Makefile | 3 SUBDIRS = lib generated samples 7 samples: | lib generated target
|
| /tools/perf/Documentation/ |
| D | perf-diff.txt | 23 If no parameters are passed the samples will be sorted by dso and symbol. 128 Analyze samples within given time window. It supports time 150 It also supports analyzing samples within a given time window 174 --cpu:: Only diff samples for the list of CPUs provided. Multiple CPUs can 176 CPUs are specified with -: 0-2. Default is to report samples on all 180 Only diff samples for given process ID (comma separated list). 183 Only diff samples for given thread ID (comma separated list). 187 aggregated by the branch records from samples. 192 file is iterated for samples. All other perf.data files specified on 196 All samples from non-baseline perf.data files, that do not match any [all …]
|
| D | perf-annotate.txt | 47 --show-nr-samples:: 48 Show the number of samples for each symbol 94 samples, TAB/UNTAB cycles through the lines with more samples. 99 --cpu=<cpu>:: Only report samples for the list of CPUs provided. Multiple CPUs can 101 CPUs are specified with -: 0-2. Default is to report samples on all 151 on - the samples period or the number of samples (hits). 160 samples (if they are memory accessing instructions) using DWARF debug
|
| D | perf-arm-spe.txt | 66 the data, Perf generates "synthetic samples" as if these were generated at the time of the 67 recording. These samples are the same as if normal sampling was done by Perf without using SPE, 93 The 'sample_collision' PMU event can be used to determine the number of lost samples. Although this 95 number for samples dropped that would have made it through the filter, but can be a rough 101 If an implementation samples micro-operations instead of instructions, the results of sampling must 131 You can record a session with SPE samples: 148 min_latency=<n> - collect only samples with this latency or higher* (PMSLATFR) 176 By default perf report and perf script will assign samples to separate groups depending on the 178 them, the samples in these groups are not necessarily unique. For example perf report shows these 181 Available samples [all …]
|
| D | tips.txt | 17 Show individual samples with: perf script 20 To show assembler sample context control flow use perf record -b / perf report --samples 10 and the… 36 To show information about system the samples were collected on use perf report --header 40 To compute metrics for samples use perf record -e '{cycles,instructions}' ... ; perf script -F +met… 48 To collect Processor Trace with samples use perf record -e '{intel_pt//,cycles}' ; perf script --ca… 56 To separate samples by time use perf report --sort time,overhead,sym 57 To filter subset of samples with report or script add --time X-Y or --cpu A,B,C or --socket-filter … 64 To compare scalability of two workload samples use perf diff -c ratio file1 file2
|
| D | perf-mem.txt | 86 --dump-raw-samples:: 87 Dump the raw decoded samples on the screen in a format that is easy to parse with 93 in CSV format. The keys are specific to memory samples are: 125 Specify the field separator used when dump raw samples (-D option). By default,
|
| D | perf-kwork.txt | 107 Only analyze samples within given time window: <start>,<stop>. Times 137 Only analyze samples within given time window: <start>,<stop>. Times 176 Only analyze samples within given time window: <start>,<stop>. Times 206 Only analyze samples within given time window: <start>,<stop>. Times
|
| D | perf-data.txt | 49 Default is off, only convert samples.
|
| D | perf-report.txt | 33 --show-nr-samples:: 34 Show the number of samples for each symbol 92 - srcfile: file name of the source file of the samples. Requires dwarf 109 - time: Separate the samples by time stamp with the resolution specified by 356 --cpu:: Only report samples for the list of CPUs provided. Multiple CPUs can 358 CPUs are specified with -: 0-2. Default is to report samples on all 423 Use the data addresses of samples in addition to instruction addresses 455 Only analyze samples within given time window: <start>,<stop>. Times 532 Only report the samples on the processor socket that match with this filter 534 --samples=N:: [all …]
|
| D | callchain-overhead-calculation.txt | 18 can find which function has the most overhead even if samples are 43 Suppose all samples are recorded in 'foo' and 'bar' only. When it's
|
| D | perf-amd-ibs.txt | 42 IBS gives samples with precise IP, i.e. the IP recorded with IBS sample has 82 # perf record -e ibs_op/cnt_ctl=1/ -c 100000 -a --raw-samples 105 Raw dump of IBS registers when profiled with --raw-samples
|
| /tools/perf/util/ |
| D | top.c | 33 if (top->samples) { in perf_top__header_snprintf() 34 samples_per_sec = top->samples / top->delay_secs; in perf_top__header_snprintf() 36 esamples_percent = (100.0 * top->exact_samples) / top->samples; in perf_top__header_snprintf() 116 top->samples = top->us_samples = top->kernel_samples = in perf_top__reset_sample_counters()
|
| D | top.h | 29 u64 samples, lost, lost_total, drop, drop_total; member
|
| /tools/tracing/rtla/src/ |
| D | osnoise_hist.c | 50 int *samples; member 77 if (data->hist[cpu].samples) in osnoise_free_histogram() 78 free(data->hist[cpu].samples); in osnoise_free_histogram() 110 data->hist[cpu].samples = calloc(1, sizeof(*data->hist->samples) * (entries + 1)); in osnoise_alloc_histogram() 111 if (!data->hist[cpu].samples) in osnoise_alloc_histogram() 143 hist = data->hist[cpu].samples; in osnoise_hist_update_multiple() 397 total += data->hist[cpu].samples[bucket]; in osnoise_print_stats() 398 trace_seq_printf(trace->seq, "%9d ", data->hist[cpu].samples[bucket]); in osnoise_print_stats() 436 data->hist[cpu].samples[data->entries]); in osnoise_print_stats()
|
| /tools/perf/tests/ |
| D | hists_link.c | 147 static int find_sample(struct sample *samples, size_t nr_samples, in find_sample() argument 151 if (RC_CHK_EQUAL(samples->thread, t) && in find_sample() 152 RC_CHK_EQUAL(samples->map, m) && in find_sample() 153 samples->sym == s) in find_sample() 155 samples++; in find_sample()
|
| /tools/testing/selftests/ftrace/ |
| D | README | 73 There are some sample test scripts for result code under samples/. 74 You can also run samples as below: 76 # ./ftracetest samples/
|
| /tools/perf/scripts/python/ |
| D | gecko.py | 120 samples: List[Sample] = field(default_factory=list) variable in Thread 192 self.samples.append(Sample(stack_id=prefix_stack_id, 227 "data": self.samples
|
| /tools/lib/perf/Documentation/ |
| D | libperf-sampling.txt | 36 The `sampling.c` example profiles/samples all CPUs with hardware cycles, in a 44 - reads and displays recorded samples 169 Following code walks through the ring buffers and reads stored events/samples:
|
| /tools/perf/ |
| D | builtin-record.c | 114 unsigned long long samples; member 176 unsigned long long samples; member 465 rec->samples++; in record__aio_push() 660 thread->samples++; in record__pushfn() 766 rec->samples++; in record__auxtrace_mmap_read() 783 rec->samples++; in record__auxtrace_mmap_read_snapshot() 1442 rec->samples++; in process_sample_event() 1699 unsigned long long hits = thread->samples; in record__thread() 1704 if (hits == thread->samples) { in record__thread() 1858 rec->samples = 0; in record__switch_output() [all …]
|
| /tools/perf/ui/ |
| D | hist.c | 52 int samples; member 77 values[0].samples = he->stat.nr_events; in __hpp__fmt() 91 values[i].samples = pair->stat.nr_events; in __hpp__fmt() 103 values[i].samples, fmt, len, in __hpp__fmt() 481 HPP_RAW_FNS(samples, nr_events) in HPP_PERCENT_FNS() 556 HPP__PRINT_FNS("Samples", samples, SAMPLES),
|