diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2016-03-25 19:35:29 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2016-03-25 19:35:29 +0000 |
commit | c975a5d3594c900588a145e7dddea2f808cfe131 (patch) | |
tree | d012a39b63ab3035ac64eff2913be737ef7bc687 /sys/sys | |
parent | 17e3ebb1addd13e0fb5cbf22c2e6b59faca2d2e4 (diff) | |
download | src-c975a5d3594c900588a145e7dddea2f808cfe131.tar.gz src-c975a5d3594c900588a145e7dddea2f808cfe131.zip |
Add td_swinvoltick to track last involuntary context switch
Expose in DDB via "show thread."
Reviewed by: markj
Sponsored by: EMC / Isilon Storage Division
Notes
Notes:
svn path=/head/; revision=297273
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/proc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 5d96406b8756..2d1769e43091 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -254,6 +254,7 @@ struct thread { int td_slptick; /* (t) Time at sleep. */ int td_blktick; /* (t) Time spent blocked. */ int td_swvoltick; /* (t) Time at last SW_VOL switch. */ + int td_swinvoltick; /* (t) Time at last SW_INVOL switch. */ u_int td_cow; /* (*) Number of copy-on-write faults */ struct rusage td_ru; /* (t) rusage information. */ struct rusage_ext td_rux; /* (t) Internal rusage information. */ |