Function report |
Source Code:kernel\time\posix-cpu-timers.c |
Create Date:2022-07-28 10:47:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Sample a per-thread clock for the given task. clkid is validated.
Proto:static u64 cpu_clock_sample(const clockid_t clkid, struct task_struct *p)
Type:u64
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const clockid_t | clkid | |
| struct task_struct * | p |
| 204 | task_cputime(p, & utime, & stime) |
| 207 | Case clkid == CPUCLOCK_PROF |
| 209 | Case clkid == CPUCLOCK_VIRT |
| 210 | Return utime |
| 211 | Default |
| 212 | WARN_ON_ONCE(1) |
| 214 | Return 0 |
| Name | Describe |
|---|---|
| posix_cpu_clock_get | |
| posix_cpu_timer_set | Guts of sys_timer_settime for CPU timers.* This is called with the timer locked and interrupts disabled.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again. (This happens when the timer is in the middle of firing.) |
| posix_cpu_timer_get | |
| posix_cpu_timer_rearm |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |