Home
last modified time | relevance | path

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

/linux/scripts/
H A Dshow_delta60 last_time = 0.0 variable
62 global last_time
75 delta = time - last_time
76 last_time = time
/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()
/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()
/linux/drivers/base/power/
H A Dwakeup_stats.c44 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show()
58 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show()
74 active_time = ktime_sub(ktime_get(), ws->last_time); in max_time_ms_show()
88 return sysfs_emit(buf, "%lld\n", ktime_to_ms(ws->last_time)); in last_change_ms_show()
H A Dsysfs.c501 msec = ktime_to_ms(dev->power.wakeup->last_time); in wakeup_last_time_ms_show()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_cubic.c79 __u32 last_time; /* time when updated last_cwnd */ member
101 ca->last_time = 0; in bictcp_reset()
284 (__s32)(tcp_jiffies32 - ca->last_time) <= HZ / 32) in bictcp_update()
291 if (ca->epoch_start && tcp_jiffies32 == ca->last_time) in bictcp_update()
295 ca->last_time = tcp_jiffies32; in bictcp_update()
/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()
/linux/tools/perf/
H A Dbuiltin-timechart.c65 first_time, last_time;
603 if (tchart->last_time < sample->time) in process_sample_cpu_idle()
604 tchart->last_time = sample->time; in process_sample_cpu_idle()
763 pwr->end_time = tchart->last_time; in pid_begin_io_sample()
772 pwr = p_state_end(tchart, cpu, tchart->last_time); in pid_end_io_sample()
1396 p->end_time = tchart->last_time; in determine_display_tasks()
1413 c->end_time = tchart->last_time; in determine_display_tasks()
1436 p->end_time = tchart->last_time; in determine_display_io_tasks()
1454 c->end_time = tchart->last_time; in determine_display_io_tasks()
1473 p->end_time = timechart->last_time; in write_svg_file()
64 first_time, last_time; global() member
[all...]
H A Dbuiltin-sched.c382 u64 last_time; /* time of previous sched in/out event */ in last_event()
413 u64 *last_time; /* time this event was last seen per cpu */ in add_sched_event_wakeup()
2274 if ((cpu >= r->ncpu) || (r->last_time == NULL)) { in timehist_update_runtime_stats()
2276 void *p = r->last_time; in timehist_update_runtime_stats()
2278 p = realloc(r->last_time, n * sizeof(u64)); in timehist_update_runtime_stats()
2282 r->last_time = p; in timehist_update_runtime_stats()
2284 r->last_time[i] = (u64) 0; in timehist_update_runtime_stats()
2289 r->last_time[cpu] = timestamp; in timehist_update_runtime_stats()
2297 if ((r == NULL) || (r->last_time == NULL) || (cpu >= r->ncpu)) in timehist_update_runtime_stats()
2300 return r->last_time[cp in timehist_update_runtime_stats()
250 u64 last_time; /* time of previous sched in/out event */ global() member
280 u64 *last_time; /* time this event was last seen per cpu */ global() member
[all...]
/linux/drivers/acpi/
H A Dbutton.c192 ktime_t last_time; member
235 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
292 button->last_time = ktime_get(); in acpi_lid_notify_state()
522 button->last_time = ktime_get(); in acpi_button_resume()
542 button->last_time = ktime_get(); in acpi_lid_input_open()
/linux/drivers/thermal/
H A Dthermal_sysfs.c585 ktime_t last_time; member
594 delta = ktime_sub(now, stats->last_time); in update_time_in_state()
597 stats->last_time = now; in update_time_in_state()
691 stats->last_time = ktime_get(); in reset_store()
790 stats->last_time = ktime_get(); in cooling_device_stats_setup()
/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()
/linux/drivers/net/ethernet/sfc/
H A Dptp.c844 struct pps_event_time *last_time) in efx_ptp_send_times() argument
875 *last_time = now; in efx_ptp_send_times()
911 const struct pps_event_time *last_time) in efx_ptp_process_times() argument
982 last_sec = last_time->ts_real.tv_sec & MC_SECOND_MASK; in efx_ptp_process_times()
991 last_time->ts_real.tv_nsec - in efx_ptp_process_times()
1005 ptp->host_time_pps = *last_time; in efx_ptp_process_times()
1019 struct pps_event_time last_time = {}; in efx_ptp_synchronize() local
1049 efx_ptp_send_times(efx, &last_time); in efx_ptp_synchronize()
1058 &last_time); in efx_ptp_synchronize()
/linux/drivers/char/
H A Drandom.c1127 unsigned long last_time; member
1165 delta = now - READ_ONCE(state->last_time); in add_timer_randomness()
1166 WRITE_ONCE(state->last_time, now); in add_timer_randomness()
1239 state->last_time = INITIAL_JIFFIES; in rand_initialize_disk()
/linux/tools/perf/util/
H A Dthread-stack.c78 * @last_time: last timestamp
97 u64 last_time; member
353 ts->last_time, 0, true); in __thread_stack__flush()
1146 ts->last_time = sample->time; in thread_stack__process()
/linux/fs/f2fs/
H A Df2fs.h1828 unsigned long last_time[MAX_TIME]; /* to store time in jiffies */ member
2179 WRITE_ONCE(sbi->last_time[type], now); in f2fs_update_time()
2183 WRITE_ONCE(sbi->last_time[DISCARD_TIME], now); in f2fs_update_time()
2184 WRITE_ONCE(sbi->last_time[GC_TIME], now); in f2fs_update_time()
2192 return time_after(jiffies, READ_ONCE(sbi->last_time[type]) + interval); in f2fs_time_over()
2202 delta = (READ_ONCE(sbi->last_time[type]) + interval) - jiffies; in f2fs_time_to_wait()
5151 unsigned long last_time = jiffies + timeout; in f2fs_schedule_timeout_killable() local
5153 while (jiffies < last_time) { in f2fs_schedule_timeout_killable()
/linux/tools/perf/scripts/python/
H A Dexported-sql-viewer.py1323 last_time = None
1337 self.SelectComms(db, last_thread_id, last_comm_id, last_time, query.value(0))
1349 last_time = time
3443 self.last_time = 2 ** 64
3450 self.last_time = int(glb.HostFinishTime())
3452 placeholder_text += ", between " + str(self.first_time) + " and " + str(self.last_time)
3510 val += self.last_time
3517 vrange[1] = str(self.last_time)
3523 end_range = min(int(vrange[1]), self.last_time)
3524 if beg_range > self.last_time or end_range < self.first_time:
/linux/include/linux/
H A Dmm.h2489 int last_time; in folio_xchg_access_time() local
2491 last_time = folio_xchg_last_cpupid(folio, in folio_xchg_access_time()
2493 return last_time << PAGE_ACCESS_TIME_BUCKETS; in folio_xchg_access_time()
/linux/drivers/hid/
H A Dhid-logitech-hidpp.c173 * @last_time: last event time, used to reset remainder after inactivity
179 unsigned long long last_time; member
572 previous = counter->last_time; in hidpp_scroll_counter_handle_scroll()
573 counter->last_time = now; in hidpp_scroll_counter_handle_scroll()
/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas.h2414 unsigned long last_time; member
H A Dmegaraid_sas_base.c2273 && time_after(jiffies, instance->last_time + 5 * HZ) in megasas_check_and_restore_queue_depth()
2961 instance->last_time = jiffies; in megasas_reset_timer()
7460 instance->last_time = 0; in megasas_init_ctrl_params()
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2200.c8088 unsigned long *last_time; in is_duplicate_packet() local
8121 last_time = &entry->packet_time; in is_duplicate_packet()
8127 last_time = &priv->last_packet_time; in is_duplicate_packet()
8133 time_after(*last_time + IPW_PACKET_RETRY_TIME, jiffies)) { in is_duplicate_packet()
8143 *last_time = jiffies; in is_duplicate_packet()
/linux/kernel/sched/
H A Dfair.c2860 int last_time, time;
2863 last_time = folio_xchg_access_time(folio, time);
2865 return (time - last_time) & PAGE_ACCESS_TIME_MASK;
2669 int last_time, time; numa_hint_fault_latency() local