Home
last modified time | relevance | path

Searched refs:last_time (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/scripts/
H A Dshow_delta60 last_time = 0.0 variable
62 global last_time
75 delta = time - last_time
76 last_time = time
H A Dget_abi.pl781 my $last_time = $start_time;
800 if ($i == $next_i || $cur_time > $last_time + 1) {
812 $last_time = $cur_time;
/openbmc/linux/tools/laptop/dslm/
H A Ddslm.c70 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()
/openbmc/linux/drivers/cpufreq/
H A Dcpufreq_stats.c17 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()
/openbmc/linux/net/ipv4/
H A Dtcp_bic.c54 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 Dtcp_cubic.c90 u32 last_time; /* time when updated last_cwnd */ member
222 (s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update()
229 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update()
233 ca->last_time = tcp_jiffies32; in bictcp_update()
/openbmc/linux/drivers/base/power/
H A Dwakeup_stats.c43 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 Dwakeup.c568 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()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c77 __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()
/openbmc/linux/drivers/acpi/
H A Dbutton.c165 ktime_t last_time; member
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()
/openbmc/linux/drivers/rtc/
H A Drtc-hid-sensor-time.c27 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()
/openbmc/linux/tools/perf/util/
H A Dsvghelper.c26 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()
H A Dthread-stack.c97 u64 last_time; member
353 ts->last_time, 0, true); in __thread_stack__flush()
1146 ts->last_time = sample->time; in thread_stack__process()
/openbmc/linux/tools/perf/
H A Dbuiltin-timechart.c64 first_time, last_time; member
585 if (tchart->last_time < sample->time) in process_sample_event()
586 tchart->last_time = sample->time; in process_sample_event()
712 pwr->end_time = tchart->last_time; in end_sample_processing()
721 pwr = p_state_end(tchart, cpu, tchart->last_time); in end_sample_processing()
1358 p->end_time = tchart->last_time; in determine_display_tasks_filtered()
1375 c->end_time = tchart->last_time; in determine_display_tasks_filtered()
1398 p->end_time = tchart->last_time; in determine_display_tasks()
1416 c->end_time = tchart->last_time; in determine_display_tasks()
1435 p->end_time = timechart->last_time; in determine_display_io_tasks()
[all …]
H A Dbuiltin-sched.c1923 if ((cpu >= r->ncpu) || (r->last_time == NULL)) { in evsel__save_time()
1925 void *p = r->last_time; in evsel__save_time()
1927 p = realloc(r->last_time, n * sizeof(u64)); in evsel__save_time()
1931 r->last_time = p; in evsel__save_time()
1933 r->last_time[i] = (u64) 0; in evsel__save_time()
1938 r->last_time[cpu] = timestamp; in evsel__save_time()
1949 return r->last_time[cpu]; in evsel__get_time()
2161 if (r->last_time > tprev) in timehist_update_runtime_stats()
2163 else if (r->last_time) { in timehist_update_runtime_stats()
2164 u64 dt_wait = tprev - r->last_time; in timehist_update_runtime_stats()
[all …]
/openbmc/linux/kernel/power/
H A Dwakelock.c113 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws->last_time)); in __wakelocks_gc()
194 wl->ws->last_time = ktime_get(); in wakelock_lookup_add()
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Ddraw.py1013 last_time = times[0]
1014 y = last_below = below[last_time]
1023 last_below = below[last_time]
1041 w = math.ceil ((time - last_time) * chart_bounds[2] / proc_tree.duration) + 1
1042 …x = chart_bounds[0] + round((last_time - proc_tree.start_time) * chart_bounds[2] / proc_tree.durat…
1043 ctx.rectangle (x, below[last_time] - last_cuml, w, last_cuml)
1046 last_time = time
1052 …x = chart_bounds[0] + round((last_time - proc_tree.start_time) * chart_bounds[2] / proc_tree.durat…
1053 y = below[last_time] - cuml
/openbmc/linux/drivers/thermal/
H A Dthermal_sysfs.c669 ktime_t last_time; member
678 delta = ktime_sub(now, stats->last_time); in update_time_in_state()
681 stats->last_time = now; in update_time_in_state()
781 stats->last_time = ktime_get(); in reset_store()
891 stats->last_time = ktime_get(); in cooling_device_stats_setup()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dptp.c838 struct pps_event_time *last_time) in efx_ptp_send_times() argument
869 *last_time = now; in efx_ptp_send_times()
905 const struct pps_event_time *last_time) in efx_ptp_process_times() argument
976 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK; in efx_ptp_process_times()
985 last_time->ts_real.tv_nsec - in efx_ptp_process_times()
999 ptp->host_time_pps = *last_time; in efx_ptp_process_times()
1013 struct pps_event_time last_time = {}; in efx_ptp_synchronize() local
1043 efx_ptp_send_times(efx, &last_time); in efx_ptp_synchronize()
1052 &last_time); in efx_ptp_synchronize()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dptp.c857 struct pps_event_time *last_time) in efx_ptp_send_times() argument
888 *last_time = now; in efx_ptp_send_times()
924 const struct pps_event_time *last_time) in efx_ptp_process_times() argument
995 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK; in efx_ptp_process_times()
1004 last_time->ts_real.tv_nsec - in efx_ptp_process_times()
1018 ptp->host_time_pps = *last_time; in efx_ptp_process_times()
1032 struct pps_event_time last_time = {}; in efx_ptp_synchronize() local
1062 efx_ptp_send_times(efx, &last_time); in efx_ptp_synchronize()
1071 &last_time); in efx_ptp_synchronize()
/openbmc/linux/include/linux/
H A Dpm_wakeup.h53 ktime_t last_time; member
/openbmc/linux/drivers/char/
H A Drandom.c1116 unsigned long last_time; member
1154 delta = now - READ_ONCE(state->last_time); in add_timer_randomness()
1155 WRITE_ONCE(state->last_time, now); in add_timer_randomness()
1228 state->last_time = INITIAL_JIFFIES; in rand_initialize_disk()
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_rx.c419 unsigned long *last_time; in is_duplicate_packet() local
467 last_time = &entry->packet_time[tid]; in is_duplicate_packet()
474 last_time = &ieee->last_packet_time[tid]; in is_duplicate_packet()
485 time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) { in is_duplicate_packet()
495 *last_time = jiffies; in is_duplicate_packet()
/openbmc/linux/drivers/usb/host/
H A Dmax3421-hcd.c1249 static unsigned long last_time; in max3421_handle_irqs() local
1253 if (time_after(jiffies, last_time + 5*HZ)) { in max3421_handle_irqs()
1267 last_time = jiffies; in max3421_handle_irqs()
/openbmc/linux/drivers/staging/rtl8192e/
H A Drtllib_rx.c357 unsigned long *last_time; in is_duplicate_packet() local
405 last_time = &entry->packet_time[tid]; in is_duplicate_packet()
412 last_time = &ieee->last_packet_time[tid]; in is_duplicate_packet()
419 time_after(*last_time + IEEE_PACKET_RETRY_TIME, jiffies)) { in is_duplicate_packet()
430 *last_time = jiffies; in is_duplicate_packet()

12