函数逻辑报告 |
Source Code:kernel\time\posix-cpu-timers.c |
Create Date:2022-07-27 11:47:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Sample a per-thread clock for the given task. clkid is validated.
函数原型:static u64 cpu_clock_sample(const clockid_t clkid, struct task_struct *p)
返回类型:u64
参数:
类型 | 参数 | 名称 |
---|---|---|
const clockid_t | clkid | |
struct task_struct * | p |
201 | 如果clkid恒等于CPUCLOCK_SCHED则返回:Return accounted runtime for the task.* In case the task is currently running, return the runtime plus current's* pending runtime that have not been accounted yet. |
204 | task_cputime(p, & utime, & stime) |
207 | 当:clkid恒等于CPUCLOCK_PROF |
209 | 当:clkid恒等于CPUCLOCK_VIRT |
210 | 返回:utime |
211 | 默认 |
212 | WARN_ON_ONCE(1) |
214 | 返回:0 |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |