Operating System - HP-UX
1847253 Members
4019 Online
110263 Solutions
New Discussion

mpinfo table ffield missing

 
Jorge Adrián López
Occasional Contributor

mpinfo table ffield missing

i got this load instruction from q4 beginers manual

load -r mpinfo_t from mpproc_info

and load 1 struct. i need print the procp field from this table but may be the name change buacause is not there.

any body know what's the new name of that field....? or it equivalent to get a comand name from the u area..? trougth procp struct
The man without dreams is not a system administrator
1 REPLY 1
Dietmar Konermann
Honored Contributor

Re: mpinfo table ffield missing

Hi Samuel,

I don't know for sure what you really want to get... but however, the procp is supposed to point to a proc structure. Since we are supporting kernel threads there is no procp in the mpinfo struct. Instead there is a threadp pointing to a thread. And from there you can get to the proc. :-)

q4> load struct mpinfo from mpproc_info
loaded 1 struct mpinfo as an array (stopped by max count)
q4> load struct kthread from threadp
loaded 1 struct kthread as an array (stopped by max count)
q4> load struct proc from kt_procp
loaded 1 struct proc as an array (stopped by max count)
q4> print p_pid p_comm
p_pid p_comm
8784 "q4.11.22l"

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)