/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | ksm_tests.c | 218 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) in ksm_do_scan() argument 234 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan() 244 struct timespec start_time, int timeout) in ksm_merge_pages() 262 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages() 269 struct timespec start_time, int timeout) in ksm_unmerge_pages() 351 struct timespec start_time; in check_ksm_merge() local 353 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_merge() 363 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge() 384 struct timespec start_time; in check_ksm_unmerge() local 387 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_unmerge() 243 ksm_merge_pages(int merge_type, void *addr, size_t size, struct timespec start_time, int timeout) ksm_merge_pages() argument 268 ksm_unmerge_pages(void *addr, size_t size, struct timespec start_time, int timeout) ksm_unmerge_pages() argument 425 struct timespec start_time; check_ksm_zero_page_merge() local 490 struct timespec start_time; check_ksm_numa_merge() local 554 struct timespec start_time, end_time; ksm_merge_hugepages_time() local 621 struct timespec start_time, end_time; ksm_merge_time() local 662 struct timespec start_time, end_time; ksm_unmerge_time() local 709 struct timespec start_time, end_time; ksm_cow_time() local [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/shell/lib/ |
H A D | waiting.sh | 11 start_time=$($tenths) 18 if [ $(($($tenths) - start_time)) -ge $tm_out ] ; then 33 start_time=$($tenths) 40 if [ $(($($tenths) - start_time)) -ge $tm_out ] ; then 53 start_time=$($tenths) 56 if [ $(($($tenths) - start_time)) -ge $tm_out ] ; then 69 start_time=$($tenths) 72 if [ $(($($tenths) - start_time)) -gt $tm_out ] ; then
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | map_perf_test_user.c | 85 __u64 start_time; in test_hash_prealloc() local 88 start_time = time_get_ns(); in test_hash_prealloc() 92 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_hash_prealloc() 127 __u64 start_time; in do_test_lru() local 186 start_time = time_get_ns(); in do_test_lru() 198 max_cnt * 1000000000ll / (time_get_ns() - start_time)); in do_test_lru() 223 __u64 start_time; in test_percpu_hash_prealloc() local 226 start_time = time_get_ns(); in test_percpu_hash_prealloc() 230 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_percpu_hash_prealloc() 235 __u64 start_time; in test_hash_kmalloc() local 247 __u64 start_time; test_percpu_hash_kmalloc() local 259 __u64 start_time; test_lpm_kmalloc() local 271 __u64 start_time; test_hash_lookup() local 283 __u64 start_time; test_array_lookup() local [all...] |
H A D | test_overhead_user.c | 35 __u64 start_time; in test_task_rename() local 44 start_time = time_get_ns(); in test_task_rename() 53 cpu, MAX_CNT * 1000000000ll / (time_get_ns() - start_time)); in test_task_rename() 59 __u64 start_time; in test_urandom_read() local 68 start_time = time_get_ns(); in test_urandom_read() 77 cpu, MAX_CNT * 1000000000ll / (time_get_ns() - start_time)); in test_urandom_read()
|
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() 98 start_time = time_get_ns(); in main()
|
/kernel/linux/linux-6.6/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 249 __u64 start_time; test_percpu_hash_kmalloc() local 261 __u64 start_time; test_lpm_kmalloc() local 273 __u64 start_time; test_hash_lookup() local 285 __u64 start_time; test_array_lookup() local [all...] |
H A D | test_overhead_user.c | 43 __u64 start_time; in test_task_rename() local 51 start_time = time_get_ns(); in test_task_rename() 60 cpu, MAX_CNT * 1000000000ll / (time_get_ns() - start_time)); in test_task_rename() 68 __u64 start_time; in test_fib_table_lookup() local 80 start_time = time_get_ns(); in test_fib_table_lookup() 90 cpu, MAX_CNT * 1000000000ll / (time_get_ns() - start_time)); in test_fib_table_lookup()
|
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()
|
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-timechart.c | 95 u64 start_time; member 109 u64 start_time; member 142 u64 start_time; member 161 u64 start_time; member 177 u64 start_time; member 251 p->start_time = timestamp; in pid_fork() 252 if (p->current && !p->current->start_time) { in pid_fork() 253 p->current->start_time = timestamp; in pid_fork() 287 sample->start_time = start; in pid_put_sample() 300 if (c->start_time in pid_put_sample() [all...] |
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-timechart.c | 98 u64 start_time; member 112 u64 start_time; member 145 u64 start_time; member 164 u64 start_time; member 180 u64 start_time; member 264 p->start_time = timestamp; in pid_fork() 265 if (p->current && !p->current->start_time) { in pid_fork() 266 p->current->start_time = timestamp; in pid_fork() 297 sample->start_time = start; in pid_put_sample() 310 if (c->start_time in pid_put_sample() [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | busy_poll.h | 42 bool sk_busy_loop_end(void *p, unsigned long start_time); 71 static inline bool busy_loop_timeout(unsigned long start_time) in busy_loop_timeout() argument 77 unsigned long end_time = start_time + bp_usec; in busy_loop_timeout() 87 unsigned long start_time) in sk_busy_loop_timeout() 93 unsigned long end_time = start_time + bp_usec; in sk_busy_loop_timeout() 86 sk_busy_loop_timeout(struct sock *sk, unsigned long start_time) sk_busy_loop_timeout() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/timers/ |
H A D | alarmtimer-suspend.c | 54 struct timespec start_time; variable 105 delta_ns = timespec_sub(start_time, ts); in sigalarm() 150 clock_gettime(alarm_clock_id, &start_time); in main() 152 start_time.tv_sec, start_time.tv_nsec); in main() 154 its1.it_value = start_time; in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/timers/ |
H A D | alarmtimer-suspend.c | 54 struct timespec start_time; variable 105 delta_ns = timespec_sub(start_time, ts); in sigalarm() 150 clock_gettime(alarm_clock_id, &start_time); in main() 152 start_time.tv_sec, start_time.tv_nsec); in main() 154 its1.it_value = start_time; in main()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | busy_poll.h | 45 bool sk_busy_loop_end(void *p, unsigned long start_time); 74 static inline bool busy_loop_timeout(unsigned long start_time) in busy_loop_timeout() argument 80 unsigned long end_time = start_time + bp_usec; in busy_loop_timeout() 90 unsigned long start_time) in sk_busy_loop_timeout() 96 unsigned long end_time = start_time + bp_usec; in sk_busy_loop_timeout() 89 sk_busy_loop_timeout(struct sock *sk, unsigned long start_time) sk_busy_loop_timeout() argument
|
/kernel/linux/linux-6.6/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 < in tsnep_enable_gcl() [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | gup_benchmark.c | 70 ktime_t start_time, end_time; in __gup_benchmark_ioctl() local 93 start_time = ktime_get(); in __gup_benchmark_ioctl() 143 gup->get_delta_usec = ktime_us_delta(end_time, start_time); in __gup_benchmark_ioctl() 152 start_time = ktime_get(); in __gup_benchmark_ioctl() 157 gup->put_delta_usec = ktime_us_delta(end_time, start_time); in __gup_benchmark_ioctl()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/ |
H A D | gruhandles.c | 68 unsigned long start_time = get_cycles(); in wait_instruction_complete() local 75 if (GRU_OPERATION_TIMEOUT < (get_cycles() - start_time)) { in wait_instruction_complete() 77 start_time = get_cycles(); in wait_instruction_complete() 81 update_mcs_stats(opc, get_cycles() - start_time); in wait_instruction_complete()
|
/kernel/linux/linux-6.6/drivers/misc/sgi-gru/ |
H A D | gruhandles.c | 68 unsigned long start_time = get_cycles(); in wait_instruction_complete() local 75 if (GRU_OPERATION_TIMEOUT < (get_cycles() - start_time)) { in wait_instruction_complete() 77 start_time = get_cycles(); in wait_instruction_complete() 81 update_mcs_stats(opc, get_cycles() - start_time); in wait_instruction_complete()
|
/kernel/linux/linux-6.6/drivers/staging/rtl8723bs/core/ |
H A D | rtw_pwrctrl.c | 192 static unsigned long start_time; in traffic_check_for_leave_lps() local 202 if (start_time == 0) in traffic_check_for_leave_lps() 203 start_time = jiffies; in traffic_check_for_leave_lps() 205 if (jiffies_to_msecs(jiffies - start_time) > 2000) { /* 2 sec == watch dog timer */ in traffic_check_for_leave_lps() 214 start_time = jiffies; in traffic_check_for_leave_lps() 286 unsigned long start_time; in rtw_set_rpwm() local 290 start_time = jiffies; in rtw_set_rpwm() 303 if (jiffies_to_msecs(jiffies - start_time) > LPS_RPWM_WAIT_MS) { in rtw_set_rpwm() 415 unsigned long start_time; in LPS_RF_ON_check() local 420 start_time in LPS_RF_ON_check() 571 unsigned long start_time; LPS_Leave_check() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/ |
H A D | xapic_ipi_test.c | 258 time_t start_time, last_update, now; in do_migrations() local 297 start_time = time(NULL); in do_migrations() 298 last_update = start_time; in do_migrations() 304 while ((int)(time(NULL) - start_time) < run_secs) { in do_migrations() 334 if (((now - start_time) % interval_secs == 0) && in do_migrations() 340 now - start_time, data->migrations_attempted, in do_migrations()
|