/kernel/linux/linux-5.10/scripts/ |
H A D | show_delta | 60 last_time = 0.0 variable 62 global last_time 75 delta = time - last_time 76 last_time = time
|
/kernel/linux/linux-6.6/scripts/ |
H A D | show_delta | 60 last_time = 0.0 variable 62 global last_time 75 delta = time - last_time 76 last_time = time
|
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | sched_avg.c | 19 static DEFINE_PER_CPU(u64, last_time); 58 diff = curr_time - per_cpu(last_time, cpu); in sched_get_nr_running_avg() 82 per_cpu(last_time, cpu) = curr_time; in sched_get_nr_running_avg() 135 diff = curr_time - per_cpu(last_time, cpu); in sched_update_nr_prod() 137 per_cpu(last_time, cpu) = curr_time; in sched_update_nr_prod()
|
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | sched_avg.c | 19 static DEFINE_PER_CPU(u64, last_time); 58 diff = curr_time - per_cpu(last_time, cpu); in sched_get_nr_running_avg() 82 per_cpu(last_time, cpu) = curr_time; in sched_get_nr_running_avg() 135 diff = curr_time - per_cpu(last_time, cpu); in sched_update_nr_prod() 137 per_cpu(last_time, cpu) = curr_time; in sched_update_nr_prod()
|
/kernel/linux/linux-5.10/tools/laptop/dslm/ |
H A D | dslm.c | 70 time_t last_time; in measure() local 84 start_time = last_time = time(0); in measure() 94 time_diff = curr_time - last_time; in measure() 101 last_time = curr_time; in measure()
|
/kernel/linux/linux-6.6/tools/laptop/dslm/ |
H A D | dslm.c | 70 time_t last_time; in measure() local 84 start_time = last_time = time(0); in measure() 94 time_diff = curr_time - last_time; in measure() 101 last_time = curr_time; in measure()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_bic.c | 54 u32 last_time; /* time when updated last_cwnd */ member 65 ca->last_time = 0; in bictcp_reset() 86 (s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update() 90 ca->last_time = tcp_jiffies32; in bictcp_update()
|
H A D | tcp_cubic.c | 88 u32 last_time; /* time when updated last_cwnd */ member 110 ca->last_time = 0; in bictcp_reset() 229 (s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update() 236 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update() 240 ca->last_time = tcp_jiffies32; in bictcp_update()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_bic.c | 54 u32 last_time; /* time when updated last_cwnd */ member 65 ca->last_time = 0; in bictcp_reset() 86 (s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update() 90 ca->last_time = tcp_jiffies32; in bictcp_update()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 17 unsigned long long last_time; member 36 stats->last_time = cur_time; in cpufreq_stats_update() 45 stats->last_time = get_jiffies_64(); in cpufreq_stats_reset_table() 92 time += get_jiffies_64() - stats->last_time; in show_time_in_state() 252 stats->last_time = get_jiffies_64(); in cpufreq_stats_create_table() 286 cpufreq_stats_update(stats, stats->last_time); in cpufreq_stats_record_transition()
|
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 17 unsigned long long last_time; member 36 stats->last_time = cur_time; in cpufreq_stats_update() 45 stats->last_time = local_clock(); in cpufreq_stats_reset_table() 92 time += local_clock() - stats->last_time; in show_time_in_state() 251 stats->last_time = local_clock(); in cpufreq_stats_create_table() 284 cpufreq_stats_update(stats, stats->last_time); in cpufreq_stats_record_transition()
|
/kernel/linux/linux-5.10/drivers/base/power/ |
H A D | wakeup_stats.c | 43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show() 57 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show() 73 active_time = ktime_sub(ktime_get(), ws->last_time); in max_time_ms_show() 87 return sysfs_emit(buf, "%lld\n", ktime_to_ms(ws->last_time)); in last_change_ms_show()
|
H A D | wakeup.c | 602 ws->last_time = ktime_get(); in wakeup_source_activate() 604 ws->start_prevent_time = ws->last_time; in wakeup_source_activate() 721 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate() 726 ws->last_time = now; in wakeup_source_deactivate() 889 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources() 890 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources() 1101 active_time = ktime_sub(now, ws->last_time); in print_wakeup_source_stats() 1117 ktime_to_ms(max_time), ktime_to_ms(ws->last_time), in print_wakeup_source_stats()
|
/kernel/linux/linux-6.6/drivers/base/power/ |
H A D | wakeup_stats.c | 43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show() 57 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show() 73 active_time = ktime_sub(ktime_get(), ws->last_time); in max_time_ms_show() 87 return sysfs_emit(buf, "%lld\n", ktime_to_ms(ws->last_time)); in last_change_ms_show()
|
H A D | wakeup.c | 568 ws->last_time = ktime_get(); in wakeup_source_activate() 570 ws->start_prevent_time = ws->last_time; in wakeup_source_activate() 687 duration = ktime_sub(now, ws->last_time); in wakeup_source_deactivate() 692 ws->last_time = now; in wakeup_source_deactivate() 855 ktime_to_ns(ws->last_time) > in pm_print_active_wakeup_sources() 856 ktime_to_ns(last_activity_ws->last_time))) { in pm_print_active_wakeup_sources() 1070 active_time = ktime_sub(now, ws->last_time); in print_wakeup_source_stats() 1086 ktime_to_ms(max_time), ktime_to_ms(ws->last_time), in print_wakeup_source_stats()
|
/kernel/liteos_a/testsuites/unittest/extended/liteipc/smoke/ |
H A D | liteipc_test_002.cpp | 135 struct timeval last_time; in TestServiceLoop() local 148 gettimeofday(&last_time, 0); in TestServiceLoop() 161 printf("LiteIPC cnt:%d, time used:%d sec\n", cnt, test_time.tv_sec - last_time.tv_sec); in TestServiceLoop()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | button.c | 161 ktime_t last_time; member 200 * frequently with "open" missing, and "last_time" is also updated in acpi_lid_notify_state() 202 * So "last_time" is only updated after a timeout or an actual in acpi_lid_notify_state() 211 next_report = ktime_add(button->last_time, in acpi_lid_notify_state() 268 button->last_time = ktime_get(); in acpi_lid_notify_state() 470 button->last_time = ktime_get(); in acpi_button_resume() 483 button->last_time = ktime_get(); in acpi_lid_input_open()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 77 __u32 last_time; /* time when updated last_cwnd */ member 99 ca->last_time = 0; in bictcp_reset() 281 (__s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update() 288 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update() 292 ca->last_time = tcp_jiffies32; in bictcp_update()
|
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | button.c | 165 ktime_t last_time; member 201 * frequently with "open" missing, and "last_time" is also updated in acpi_lid_notify_state() 203 * So "last_time" is only updated after a timeout or an actual in acpi_lid_notify_state() 212 next_report = ktime_add(button->last_time, in acpi_lid_notify_state() 269 button->last_time = ktime_get(); in acpi_lid_notify_state() 489 button->last_time = ktime_get(); in acpi_button_resume() 502 button->last_time = ktime_get(); in acpi_lid_input_open()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 77 __u32 last_time; /* time when updated last_cwnd */ member 99 ca->last_time = 0; in bictcp_reset() 275 (__s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update() 282 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update() 286 ca->last_time = tcp_jiffies32; in bictcp_update()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | svghelper.c | 26 static u64 first_time, last_time; variable 62 X = 1.0 * svg_page_width * (__time - first_time) / (last_time - first_time); in time2pixels() 96 last_time = end; in open_svg() 102 new_width = (last_time - first_time) / 5000000; in open_svg() 369 time2pixels(last_time)-time2pixels(first_time), in svg_cpu_box() 659 while (i < last_time) { in svg_time_grid()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | svghelper.c | 26 static u64 first_time, last_time; variable 62 X = 1.0 * svg_page_width * (__time - first_time) / (last_time - first_time); in time2pixels() 96 last_time = end; in open_svg() 102 new_width = (last_time - first_time) / 5000000; in open_svg() 369 time2pixels(last_time)-time2pixels(first_time), in svg_cpu_box() 659 while (i < last_time) { in svg_time_grid()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-hid-sensor-time.c | 27 struct rtc_time last_time; member 56 time_state->last_time = time_state->time_buf; in hid_time_proc_event() 209 *tm = time_state->last_time; in hid_rtc_read_time()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-hid-sensor-time.c | 27 struct rtc_time last_time; member 56 time_state->last_time = time_state->time_buf; in hid_time_proc_event() 209 *tm = time_state->last_time; in hid_rtc_read_time()
|
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-timechart.c | 61 first_time, last_time; member 563 if (tchart->last_time < sample->time) in process_sample_event() 564 tchart->last_time = sample->time; in process_sample_event() 690 pwr->end_time = tchart->last_time; in end_sample_processing() 705 pwr->end_time = tchart->last_time; in end_sample_processing() 1349 p->end_time = tchart->last_time; in determine_display_tasks_filtered() 1366 c->end_time = tchart->last_time; in determine_display_tasks_filtered() 1389 p->end_time = tchart->last_time; in determine_display_tasks() 1407 c->end_time = tchart->last_time; in determine_display_tasks() 1426 p->end_time = timechart->last_time; in determine_display_io_tasks() [all...] |