| /linux/tools/testing/selftests/mm/ |
| H A D | ksm_tests.c | 190 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) 206 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan() 216 struct timespec start_time, int timeout) in ksm_merge_pages() 234 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages() 241 struct timespec start_time, int timeout) in ksm_unmerge_pages() 323 struct timespec start_time; in check_ksm_merge() 325 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_merge() 335 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge() 354 struct timespec start_time; in check_ksm_unmerge() 357 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_unmerge() local 191 ksm_do_scan(int scan_count,struct timespec start_time,int timeout) ksm_do_scan() argument 217 ksm_merge_pages(int merge_type,void * addr,size_t size,struct timespec start_time,int timeout) ksm_merge_pages() argument 242 ksm_unmerge_pages(void * addr,size_t size,struct timespec start_time,int timeout) ksm_unmerge_pages() argument 324 struct timespec start_time; check_ksm_merge() local 398 struct timespec start_time; check_ksm_zero_page_merge() local 463 struct timespec start_time; check_ksm_numa_merge() local 527 struct timespec start_time, end_time; ksm_merge_hugepages_time() local 599 struct timespec start_time, end_time; ksm_merge_time() local 640 struct timespec start_time, end_time; ksm_unmerge_time() local 687 struct timespec start_time, end_time; ksm_cow_time() local [all...] |
| /linux/samples/bpf/ |
| H A D | map_perf_test_user.c | 84 __u64 start_time; in test_hash_prealloc() local 87 start_time = time_get_ns(); in test_hash_prealloc() 91 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_hash_prealloc() 126 __u64 start_time; in do_test_lru() local 188 start_time = time_get_ns(); in do_test_lru() 200 max_cnt * 1000000000ll / (time_get_ns() - start_time)); in do_test_lru() 225 __u64 start_time; in test_percpu_hash_prealloc() local 228 start_time = time_get_ns(); in test_percpu_hash_prealloc() 232 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_percpu_hash_prealloc() 237 __u64 start_time; in test_hash_kmalloc() local [all …]
|
| H A D | trace_output_user.c | 17 static __u64 start_time; variable 39 MAX_CNT * 1000000000ll / (time_get_ns() - start_time)); in print_bpf_output() 96 start_time = time_get_ns(); in main()
|
| /linux/tools/perf/tests/shell/lib/ |
| H A D | waiting.sh | |
| /linux/tools/perf/ |
| H A D | builtin-timechart.c | 101 u64 start_time; 115 u64 start_time; 148 u64 start_time; 167 u64 start_time; 183 u64 start_time; 267 p->start_time = timestamp; in pid_fork() 268 if (p->current && !p->current->start_time) { in pid_fork() 269 p->current->start_time = timestamp; in pid_fork() 300 sample->start_time = start; in pid_put_sample() 313 if (c->start_time in pid_put_sample() 98 u64 start_time; global() member 112 u64 start_time; global() member 145 u64 start_time; global() member 164 u64 start_time; global() member 180 u64 start_time; global() member [all...] |
| /linux/tools/testing/selftests/timers/ |
| H A D | alarmtimer-suspend.c | 40 struct timespec start_time; variable 60 delta_ns = timespec_sub(start_time, ts); in clockstring() 105 clock_gettime(alarm_clock_id, &start_time); in main() 107 start_time.tv_sec, start_time.tv_nsec); in main() 109 its1.it_value = start_time; in main()
|
| H A D | set-timer-lat.c | 42 struct timespec start_time; variable 63 delta_ns = timespec_sub(start_time, ts); in clockstring() 111 clock_gettime(clock_id, &start_time); in setup_timer() 113 its1.it_value = start_time; in setup_timer()
|
| /linux/drivers/media/pci/cobalt/ |
| H A D | cobalt-i2c.c | 111 unsigned long start_time; in cobalt_tx_bytes() local 138 start_time = jiffies; in cobalt_tx_bytes() 141 if (time_after(jiffies, start_time + adap->timeout)) in cobalt_tx_bytes() 169 unsigned long start_time; in cobalt_rx_bytes() local 197 start_time = jiffies; in cobalt_rx_bytes() 200 if (time_after(jiffies, start_time + adap->timeout)) in cobalt_rx_bytes() 310 unsigned long start_time; in cobalt_i2c_init() local 327 start_time = jiffies; in cobalt_i2c_init() 329 if (time_after(jiffies, start_time + HZ)) { in cobalt_i2c_init()
|
| /linux/drivers/net/ethernet/engleder/ |
| H A D | tsnep_tc.c | 278 gcl->start_time = tsnep_gcl_start_after(gcl, limit); in tsnep_enable_gcl() 283 if ((gcl->start_time - system_time) >= U32_MAX) in tsnep_enable_gcl() 291 last = tsnep_gcl_start_before(curr, gcl->start_time); in tsnep_enable_gcl() 292 if ((last + curr->cycle_time) == gcl->start_time) in tsnep_enable_gcl() 294 gcl->start_time - last); in tsnep_enable_gcl() 295 else if (((gcl->start_time - last) <= in tsnep_enable_gcl() 297 ((gcl->start_time - last) <= TSNEP_GCL_MIN_INTERVAL)) in tsnep_enable_gcl() 299 gcl->start_time - last); in tsnep_enable_gcl() 302 gcl->start_time - last); in tsnep_enable_gcl() 309 WARN_ON(gcl->start_time <= timeout); in tsnep_enable_gcl() [all …]
|
| /linux/include/net/ |
| H A D | busy_poll.h | 50 bool sk_busy_loop_end(void *p, unsigned long start_time); 86 static inline bool busy_loop_timeout(unsigned long start_time) in busy_loop_timeout() argument 92 unsigned long end_time = start_time + bp_usec; in busy_loop_timeout() 102 unsigned long start_time) in sk_busy_loop_timeout() argument 108 unsigned long end_time = start_time + bp_usec; in sk_busy_loop_timeout()
|
| /linux/tools/perf/util/ |
| H A D | tool_pmu.c | 277 evsel->duration_time.start_time = INVALID_START_TIME; in evsel__tool_pmu_open() 280 evsel->duration_time.start_time = rdclock(); in evsel__tool_pmu_open() 295 __u64 *start_time = NULL; in evsel__tool_pmu_open() 318 start_time = xyarray__entry(evsel->process_time.start_times, idx, in tool_pmu__cpu_slots_per_cycle() 326 *start_time = INVALID_START_TIME; in has_pmem() 329 err = tool_pmu__read_stat(evsel, idx, thread, start_time); in has_pmem() 530 evsel->duration_time.start_time = rdclock(); in evsel__tool_pmu_read() 537 __u64 *start_time = xyarray__entry(evsel->process_time.start_times, in evsel__tool_pmu_read() 544 *start_time = val; in evsel__tool_pmu_read() 546 *start_time in evsel__tool_pmu_read() 250 __u64 *start_time = NULL; evsel__tool_pmu_open() local 473 __u64 *start_time, cur_time, delta_start; evsel__tool_pmu_read() local [all...] |
| /linux/tools/testing/selftests/ublk/ |
| H A D | test_part_02.sh | 15 local start_time 40 start_time=${SECONDS} 43 elapsed=$((SECONDS - start_time))
|
| /linux/tools/laptop/dslm/ |
| H A D | dslm.c | 68 time_t start_time; in measure() local 84 start_time = last_time = time(0); in measure() 109 total_time = time(0) - start_time; in measure() 110 printf("\nTotal running time: %lus\n", curr_time - start_time); in measure()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_hashmap_lookup.c | 55 u64 start_time; in benchmark() local 58 start_time = bpf_ktime_get_ns(); in benchmark() 60 percpu_times[cpu & CPU_MASK][times_index] = bpf_ktime_get_ns() - start_time; in benchmark()
|
| H A D | bpf_hashmap_full_update_bench.c | 35 u64 start_time = bpf_ktime_get_ns(); in benchmark() local 38 percpu_time[cpu & 255] = bpf_ktime_get_ns() - start_time; in benchmark()
|
| /linux/drivers/md/ |
| H A D | dm-ps-historical-service-time.c | 445 static u64 path_service_time(struct path_info *pi, u64 start_time) in hst_select_path() 453 if (time_after64(pi->last_finish, start_time)) in hst_select_path() 454 start_time = pi->last_finish; in hst_select_path() 457 if (time_before64(now, start_time)) in hst_select_path() 460 return now - start_time; 464 size_t nr_bytes, u64 start_time) in hst_start_io() 473 st = path_service_time(pi, start_time); 474 path_service_time(struct path_info * pi,u64 start_time) path_service_time() argument 493 hst_end_io(struct path_selector * ps,struct dm_path * path,size_t nr_bytes,u64 start_time) hst_end_io() argument
|
| /linux/io_uring/ |
| H A D | napi.c | 141 unsigned long start_time) in io_napi_busy_loop_timeout() 137 io_napi_busy_loop_timeout(ktime_t start_time,ktime_t bp) io_napi_busy_loop_timeout() argument 151 io_napi_busy_loop_should_end(void * data,unsigned long start_time) io_napi_busy_loop_should_end() argument 218 unsigned long start_time = busy_loop_current_time(); io_napi_blocking_busy_loop() local
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | xapic_ipi_test.c | 237 time_t start_time, last_update, now; in cancel_join_vcpu_thread() 260 start_time = time(NULL); in do_migrations() 261 last_update = start_time; in do_migrations() 267 while ((int)(time(NULL) - start_time) < run_secs) { in do_migrations() 297 if (((now - start_time) % interval_secs == 0) && in do_migrations() 303 now - start_time, data->migrations_attempted, in do_migrations() 257 time_t start_time, last_update, now; do_migrations() local
|
| /linux/tools/perf/scripts/python/ |
| H A D | gecko.py | |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_overhead.c | 22 __u64 start_time; in test_task_rename() local 27 start_time = time_get_ns(); in test_task_rename() 37 MAX_CNT * 1000000ll / (time_get_ns() - start_time)); in test_task_rename()
|
| /linux/mm/ |
| H A D | dmapool_test.c | 66 ktime_t start_time, end_time; in dmapool_test_block() local 81 start_time = ktime_get(); in dmapool_test_block() 93 ktime_us_delta(end_time, start_time)); in dmapool_test_block()
|
| H A D | gup_test.c | 110 ktime_t start_time, end_time; in __gup_test_ioctl() local 138 start_time = ktime_get(); in __gup_test_ioctl() 189 gup->get_delta_usec = ktime_us_delta(end_time, start_time); in __gup_test_ioctl() 201 start_time = ktime_get(); in __gup_test_ioctl() 206 gup->put_delta_usec = ktime_us_delta(end_time, start_time); in __gup_test_ioctl()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/macsec/ |
| H A D | macsec_struct.h | 234 u32 start_time; member 288 u32 start_time; member 491 u32 start_time; member 536 u32 start_time; member
|
| /linux/tools/power/cpupower/utils/idle_monitor/ |
| H A D | amd_fam14h_idle.c | 85 static struct timespec start_time; variable 231 clock_gettime(CLOCK_REALTIME, &start_time); in amd_fam14h_start() 238 dbg_timediff = timespec_diff_us(start_time, dbg_time); in amd_fam14h_start() 261 timediff = timespec_diff_us(start_time, end_time); in amd_fam14h_stop()
|
| H A D | cpuidle_sysfs.c | 22 static struct timespec start_time; variable 47 clock_gettime(CLOCK_REALTIME, &start_time); in cpuidle_start() 65 timediff = timespec_diff_us(start_time, end_time); in cpuidle_stop()
|