]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: add psinfo/cpuinfo OS level support
authorKris Van Hees <kris.van.hees@oracle.com>
Sun, 9 Sep 2012 21:27:14 +0000 (17:27 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:32 +0000 (22:40 +0100)
commite97ad59a3e37b73b88751cab56335770c64a3970
tree7d88aa415d771a7260723eac143510ce309689a7
parentfd5253755c9792d98660b332bbc4b280548228ab
dtrace: add psinfo/cpuinfo OS level support

Added a member to the task structure, to hold DTrace specific process info.  It
stores (up to) the first 79 characters of the command line (with arguments),
as required for the pr_psargs elements in psinfo_t.  It also stores the number
of initial arguments (pr_argc), and the initial argument (pr_argv) and
environment variable (pr_envp) vectors.

This process information is pre-populated when an execve takes place in the
current task.  Note that if a process alters the arguments, this altertation
will be visible when pr_argv is consulted, and thus returned argument strings
may not match the originally provided values.

Enforce that invop handlers return a uint8 value, to be used in the future for
knowing what instruction to emulate upon return from an invop trap.

Added per-cpu CPU information that is used to provide cpuinfo_t data.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
fs/exec.c
include/linux/dtrace_cpu.h
include/linux/dtrace_os.h
include/linux/sched.h
kernel/dtrace/dtrace_cpu.c
kernel/dtrace/dtrace_os.c
kernel/fork.c