如何在Solaris中获取进程调度程序历史记录?

时间:2014-01-16 06:28:36

标签: process solaris scheduler

我想知道是否有办法在Solaris操作系统中获取sheduler历史记录。输出可能包含以下详细信息。

user : user name who invoked the process
name : name of the process / command used to invoke the process
loc  : location or path of the binary
pid  : process id
event: event happened to the process (init, suspend or end)
time : time the event happend
date : date the event happeed

我很想知道其他操作系统是否有这样的东西。

2 个答案:

答案 0 :(得分:1)

您可以使用dtrace脚本利用proc providerproc:::exec-successproc:::exitproc:::signal_handle)来实现该目标。

您的活动列表看起来很可疑,应该至少应为“startsuspendresumeexit

答案 1 :(得分:1)

您需要Solaris的审核功能。 man审计和相关的实用程序,auditconfig等