History

sched/cputime: Add vtime guest task state

Record guest as a VTIME state instead of guessing it from VTIME_SYS and PF_VCPU. This is going to simplify the cputime read side especially as its state machine is going to further expand in order to fully support kcpustat on nohz_full.

Frederic Weisbecker committed 7 years ago

Commit e6d5bf31 parent 14faf6f2 files · +13 −7Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/sched.h+2−0
@@ -255,6 +255,8 @@ enum vtime_state { · 254 unmodified lines
255255 VTIME_SYS,
256256 /* Task runs in userspace in a CPU with VTIME active: */
257257 VTIME_USER,
258+ /* Task runs as guests in a CPU with VTIME active: */
259+ VTIME_GUEST,
258260 };
259261
260262 struct vtime {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t