| /tools/testing/selftests/seccomp/ |
| A D | seccomp_benchmark.c | 33 for (i = 0; i < samples; i++) { in timing() 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 212 samples = calibrate(); in main() 217 native = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main() 227 bitmap1 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main() 234 bitmap2 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main() 241 filter1 = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main() [all …]
|
| /tools/testing/selftests/lkdtm/ |
| A 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/ |
| A 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/ |
| A 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() 196 free(samples); in TEST_F() 211 void *samples; in TEST_F() local 215 ASSERT_NE(samples, NULL); in TEST_F() 222 snd_pcm_format_set_silence(params->format, samples, in TEST_F() 227 it = (unsigned char *)samples; in TEST_F() [all …]
|
| A 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/perf/Documentation/ |
| A D | perf-diff.txt | 128 Analyze samples within given time window. It supports time 150 It also supports analyzing samples within a given time window 183 Only diff samples for given thread ID (comma separated list). 187 aggregated by the branch records from samples. 200 Example files samples: 201 - file A with samples f1, f2, f3, f4, f6 202 - file B with samples f2, f4, f5 203 - file C with samples f1, f2, f5 211 baseline/A compute/B compute/C samples 222 baseline/B compute/A compute/C samples [all …]
|
| A 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
|
| A 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, 95 number for samples dropped that would have made it through the filter, but can be a rough 131 You can record a session with SPE samples: 148 min_latency=<n> - collect only samples with this latency or higher* (PMSLATFR) 177 By default perf report and perf script will assign samples to separate groups depending on the 182 Available samples 197 To get a full list of unique samples that are not sorted into groups, set the itrace option to 198 generate 'instruction' samples. The period option is also taken into account, so set it to 1 203 Memory access details are also stored on the samples and this can be viewed with: [all …]
|
| A 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
|
| A D | perf-mem.txt | 95 --dump-raw-samples:: 96 Dump the raw decoded samples on the screen in a format that is easy to parse with 102 in CSV format. The keys are specific to memory samples are: 150 Specify the field separator used when dump raw samples (-D option). By default, 160 there are two samples in perf.data file, both with the same sample period, 182 Using those two as output fields will aggregate samples altogether and show 193 But using the same name for sort keys will aggregate samples for each type
|
| A 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
|
| A D | perf-data.txt | 49 Default is off, only convert samples.
|
| A D | perf-report.txt | 33 --show-nr-samples:: 34 Show the number of samples for each symbol 109 - srcfile: file name of the source file of the samples. Requires dwarf 128 - time: Separate the samples by time stamp with the resolution specified by 377 CPUs are specified with -: 0-2. Default is to report samples on all 450 Use the data addresses of samples in addition to instruction addresses 482 Only analyze samples within given time window: <start>,<stop>. Times 561 --samples=N:: 562 Save N individual samples for each histogram entry to show context in perf 571 samples based on the criteria and then sub-divide it using the lower [all …]
|
| A D | callchain-overhead-calculation.txt | 19 can find which function has the most overhead even if samples are 44 Suppose all samples are recorded in 'foo' and 'bar' only. When it's
|
| A 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 114 Raw dump of IBS registers when profiled with --raw-samples
|
| /tools/perf/util/ |
| A 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()
|
| A D | top.h | 29 u64 samples, lost, lost_total, drop, drop_total; member
|
| /tools/net/ynl/ |
| A D | Makefile | 15 SUBDIRS = lib generated samples 19 samples: | lib generated target
|
| /tools/tracing/rtla/src/ |
| A D | osnoise_hist.c | 19 int *samples; member 46 if (data->hist[cpu].samples) in osnoise_free_histogram() 47 free(data->hist[cpu].samples); in osnoise_free_histogram() 79 data->hist[cpu].samples = calloc(1, sizeof(*data->hist->samples) * (entries + 1)); in osnoise_alloc_histogram() 80 if (!data->hist[cpu].samples) in osnoise_alloc_histogram() 112 hist = data->hist[cpu].samples; in osnoise_hist_update_multiple() 366 total += data->hist[cpu].samples[bucket]; in osnoise_print_stats() 367 trace_seq_printf(trace->seq, "%9d ", data->hist[cpu].samples[bucket]); in osnoise_print_stats() 405 data->hist[cpu].samples[data->entries]); in osnoise_print_stats()
|
| /tools/perf/tests/ |
| A 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/ |
| A 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/ |
| A 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/ |
| A 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/testing/selftests/exec/ |
| A D | Makefile | 29 CHECK_EXEC_SAMPLES := $(top_srcdir)/samples/check-exec
|
| /tools/perf/ |
| A D | builtin-record.c | 470 rec->samples++; in record__aio_push() 665 thread->samples++; in record__pushfn() 678 thread->samples++; in record__pushfn() 786 rec->samples++; in record__auxtrace_mmap_read() 805 rec->samples++; in record__auxtrace_mmap_read_snapshot() 1466 rec->samples++; in process_sample_event() 1881 rec->samples = 0; in record__switch_output() 2362 rec->samples += thread_data[t].samples; in record__stop_threads() 2890 rec->samples = 0; in __cmd_record() 2907 char samples[128]; in __cmd_record() local [all …]
|