| /tools/perf/scripts/python/ |
| A D | stat-cpi.py | 10 def get_key(time, event, cpu, thread): argument 11 return "%d-%s-%d-%d" % (time, event, cpu, thread) 13 def store_key(time, cpu, thread): argument 14 if (time not in times): 15 times.append(time) 23 def store(time, event, cpu, thread, val, ena, run): argument 27 store_key(time, cpu, thread) 28 key = get_key(time, event, cpu, thread) 31 def get(time, event, cpu, thread): argument 32 key = get_key(time, event, cpu, thread) [all …]
|
| A D | netdev-times.py | 322 irq_record.update({'irq_ext_t':time}) 369 'dev':dev_name, 'event_t':time, 374 (name, context, cpu, time, pid, comm, 392 (name, context, cpu, time, pid, comm, 407 (name, context, cpu, time, pid, comm, 418 (name, context, cpu, time, pid, comm, 424 skb['xmit_t'] = time 433 (name, context, cpu, time, pid, comm, 443 skb['free_t'] = time 451 'comm':comm, 'pid':pid, 'comm_t':time}) [all …]
|
| /tools/testing/selftests/timers/ |
| A D | valid-adjtimex.c | 202 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 205 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 206 tmx.time.tv_sec -= 1; in set_offset() 207 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 213 if (offset < 0 && tmx.time.tv_usec) { in set_offset() 214 tmx.time.tv_sec -= 1; in set_offset() 215 tmx.time.tv_usec += USEC_PER_SEC; in set_offset() 221 printf("(sec: %ld usec: %ld) ", tmx.time.tv_sec, tmx.time.tv_usec); in set_offset() 237 tmx.time.tv_sec = sec; in set_bad_offset() 238 tmx.time.tv_usec = usec; in set_bad_offset() [all …]
|
| A D | set-2038.c | 47 int settime(long long time) in settime() argument 52 now.tv_sec = (time_t)time; in settime() 57 printf("Setting time to 0x%lx: %d\n", (long)time, ret); in settime() 87 start = time(0); in main()
|
| A D | leap-a-day.c | 138 if (tx.time.tv_sec < next_leap) { in sigalarm() 142 tx.time.tv_sec, in sigalarm() 143 tx.time.tv_usec, in sigalarm() 151 tx.time.tv_sec, in sigalarm() 152 tx.time.tv_usec, in sigalarm() 328 now = tx.time.tv_sec; in main() 344 ctime_r(&tx.time.tv_sec, buf); in main() 349 tx.time.tv_usec, in main() 353 now = tx.time.tv_sec; in main()
|
| /tools/testing/selftests/net/packetdrill/ |
| A D | tcp_tcp_info_tcp-info-rwnd-limited.pkt | 2 // Test rwnd limited time in tcp_info for client side. 21 // Make sure that initial rwnd limited time is 0. 24 // Receive window limited time starts here. 27 // Check that rwnd limited time in tcp_info is around 0.1s. 33 // Check that rwnd limited time in tcp_info is around 0.2s. 41 // Receive window limited time starts again. 46 // Check that rwnd limited time in tcp_info is around 0.3s 47 // and busy time is 0.3 + 0.03 (server opened small window temporarily).
|
| /tools/perf/Documentation/ |
| A D | perf-kwork.txt | 39 including the run time and delay (time between raise and actually entry): 106 --time:: 107 Only analyze samples within given time window: <start>,<stop>. Times 110 stop time is not given (i.e, time string is 'x.y,') then analysis goes 136 --time:: 137 Only analyze samples within given time window: <start>,<stop>. Times 140 stop time is not given (i.e, time string is 'x.y,') then analysis goes 175 --time:: 179 stop time is not given (i.e, time string is 'x.y,') then analysis goes 205 --time:: [all …]
|
| A D | cpu-and-latency-overheads.txt | 3 There are two notions of time: wall-clock time and CPU time. 7 Each second of wall-clock time we have number-of-cores seconds of CPU time. 9 'latency' columns for CPU and wall-clock time correspondingly). 20 128 seconds of CPU time). The CPU overhead is: 'foo' - 6.6%, 'bar' - 93.4%. 22 running time of the program looking at the (wrong in this case) CPU overhead, 24 time improvement at best. 51 flags. It shows fraction of (wall-clock) time the workload utilizes different 53 the workload utilizes only 1 core most of the time, but also has some
|
| A D | perf-sched.txt | 36 It shows Runtime(time that a task spent actually running on the CPU), 37 Count(number of times a delay was calculated) and delay(time that a 66 time (time between sched-out and next sched-in events for the task), the 68 run time for the task: 70 time cpu task name wait time sch delay run time 136 time is printed and is represented by '*-' for the given 186 Show visual aid for sched switches by CPU: 'i' marks idle time, 205 --time:: 209 stop time is not given (i.e, time string is 'x.y,') then analysis goes 226 Show pre-migration wait time. pre-migration wait time is the time spent [all …]
|
| A D | perf-kvm.txt | 61 handled sample, percent_sample, time, percent_time, max_t, min_t, mean_t. 102 number), percent_sample (sort by sample percentage), time 103 (sort by average time), precent_time (sort by time percentage), 104 max_t (sort by maximum time), min_t (sort by minimum time), mean_t 105 (sort by mean time). 142 number), time (sort by average time). 150 a long time, because the file may be huge. A time out is needed 152 This option sets the time out limit. The default value is 500 ms.
|
| A D | tips.txt | 5 To not accumulate CPU time of children symbols add --no-children 16 To see call chains by final symbol taking CPU time (bottom up) use perf report -G 49 …cord -e intel_pt// ... ; perf script --call-trace. Then use perf script --time A-B --insn-trace to… 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 … 58 To set sample time separation other than 100ms with --sort time use --time-quantum 62 To show time in nanoseconds in record/report add --ns 68 To see how parallelism changes over time, try: perf report -F time,latency,parallelism --time-quant…
|
| /tools/power/cpupower/bench/ |
| A D | README-BENCH | 9 - Identify average reaction time of a governor to CPU load changes 35 will be run X time in a row (cycles): 48 Will increase load and sleep time by 25ms 5 times. 50 25ms load/sleep time repeated 20 times (cycles). 51 50ms load/sleep time repeated 20 times (cycles). 53 100ms load/sleep time repeated 20 times (cycles). 87 50 50 50 50ms ->time 109 -l, --load=<long int> initial load time in us 110 -s, --sleep=<long int> initial sleep time in us 111 -x, --load-step=<long int> time to be added to load time, in us [all …]
|
| /tools/testing/selftests/drivers/net/lib/py/ |
| A D | load.py | 4 import time 17 time.sleep(0.1) 33 time.sleep(0.1) 62 end = time.monotonic() + timeout 66 while time.monotonic() < end: 70 time.sleep(sleep)
|
| /tools/testing/selftests/kvm/x86/ |
| A D | xen_shinfo_test.c | 127 uint64_t time[5]; member 140 struct pvclock_vcpu_time_info time; member 207 GUEST_ASSERT(rs->time[RUNSTATE_blocked] != 0); in guest_code() 211 GUEST_ASSERT(rs->time[RUNSTATE_offline] != 0); in guest_code() 633 rs->time[1] + rs->time[2] + rs->time[3], in main() 663 0x5a - rs->time[RUNSTATE_blocked]; in main() 665 0x6b6b - rs->time[RUNSTATE_offline]; in main() 907 for (time_t t = time(NULL) + SHINFO_RACE_TIMEOUT; time(NULL) < t;) in main() 1055 runstate_names[i], rs->time[i]); in main() 1103 crs->time[1] + crs->time[2] + crs->time[3], in main() [all …]
|
| /tools/testing/selftests/alsa/ |
| A D | test-pcmtest-driver.c | 29 int time; member 149 self->params.time = 4; in FIXTURE_SETUP() 175 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F() 184 params->rate * params->channels * params->time); in TEST_F() 186 for (i = 0; i < self->params.sec_buf_len * params->time; i++) { in TEST_F() 214 samples = calloc(self->params.sec_buf_len * self->params.time, 1); in TEST_F() 223 params->rate * params->channels * params->time); in TEST_F() 256 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1); in TEST_F() 265 for (j = 0; j < params.rate * params.time; j++) in TEST_F() 291 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1); in TEST_F() [all …]
|
| /tools/testing/selftests/rtc/ |
| A D | rtctest.c | 311 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F() 315 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F() 335 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F() 336 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F() 337 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F() 441 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); 444 secs = timegm((struct tm *)&alarm.time) + 60 - alarm.time.tm_sec; 445 gmtime_r(&secs, (struct tm *)&alarm.time); 465 alarm.time.tm_mday, alarm.time.tm_mon + 1, 466 alarm.time.tm_year + 1900, alarm.time.tm_hour, [all …]
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | pp_alloc_fail.py | 5 import time 56 time.sleep(1) 82 time.sleep(3) 110 time.sleep(0.1) 116 time.sleep(0.1)
|
| /tools/power/acpi/os_specific/service_layers/ |
| A D | osunixxf.c | 721 struct timespec time; in acpi_os_wait_semaphore() local 785 if (clock_gettime(CLOCK_REALTIME, &time) == -1) { in acpi_os_wait_semaphore() 790 time.tv_sec += (msec_timeout / ACPI_MSEC_PER_SEC); in acpi_os_wait_semaphore() 791 time.tv_nsec += in acpi_os_wait_semaphore() 796 if (time.tv_nsec >= ACPI_NSEC_PER_SEC) { in acpi_os_wait_semaphore() 797 time.tv_sec += (time.tv_nsec / ACPI_NSEC_PER_SEC); in acpi_os_wait_semaphore() 798 time.tv_nsec = (time.tv_nsec % ACPI_NSEC_PER_SEC); in acpi_os_wait_semaphore() 984 struct timeval time; in acpi_os_get_timer() local 988 gettimeofday(&time, NULL); in acpi_os_get_timer() 992 return (((u64)time.tv_sec * ACPI_100NSEC_PER_SEC) + in acpi_os_get_timer() [all …]
|
| /tools/testing/kunit/ |
| A D | kunit.py | 15 import time 83 config_start = time.time() 85 config_end = time.time() 93 build_start = time.time() 97 build_end = time.time() 189 test_start = time.time() 202 test_end = time.time() 222 parse_start = time.time() 246 parse_time = time.time() - parse_start 271 run_start = time.time() [all …]
|
| /tools/laptop/dslm/ |
| A D | dslm.c | 58 static char *myctime(time_t time) in myctime() argument 60 char *ts = ctime(&time); in myctime() 84 start_time = last_time = time(0); in measure() 93 curr_time = time(0); in measure() 109 total_time = time(0) - start_time; in measure()
|
| /tools/net/sunrpc/xdrgen/generators/ |
| A D | header_top.py | 7 import time 29 mtime=time.ctime(os.path.getmtime(filename)), 40 mtime=time.ctime(os.path.getmtime(filename)),
|
| /tools/testing/selftests/bpf/progs/ |
| A D | exceptions.c | 335 u64 time = bpf_ktime_get_ns(); in exception_assert_range() local 337 bpf_assert_range(time, 0, ~0ULL); in exception_assert_range() 344 u64 time = bpf_ktime_get_ns(); in exception_assert_range_with() local 346 bpf_assert_range_with(time, 0, ~0ULL, 10); in exception_assert_range_with() 353 u64 time = bpf_ktime_get_ns(); in exception_bad_assert_range() local 355 bpf_assert_range(time, -100, 100); in exception_bad_assert_range() 362 u64 time = bpf_ktime_get_ns(); in exception_bad_assert_range_with() local 364 bpf_assert_range_with(time, -1000, 1000, 10); in exception_bad_assert_range_with()
|
| /tools/perf/ui/browsers/ |
| A D | res_sample.c | 50 timestamp__scnprintf_nsec(res_samples[i].time, tbuf, sizeof tbuf); in res_sample_browse() 68 n = timestamp__scnprintf_nsec(r->time - context_len, trange, sizeof trange); in res_sample_browse() 70 timestamp__scnprintf_nsec(r->time + context_len, trange + n, sizeof trange - n); in res_sample_browse() 72 timestamp__scnprintf_nsec(r->time, tsample, sizeof tsample); in res_sample_browse()
|
| /tools/testing/selftests/bpf/benchs/ |
| A D | bench_bpf_hashmap_full_update.c | 71 u64 time = ctx.skel->bss->percpu_time[i]; in hashmap_report_final() local 73 if (!time) in hashmap_report_final() 77 i, ctx.skel->bss->nr_loops * 1000000000ll / time); in hashmap_report_final()
|
| /tools/testing/selftests/net/lib/py/ |
| A D | nsim.py | 8 import time 114 timeout_start = time.time() 123 if time.time() < timeout_start + timeout:
|