Unix Programming - Re: Accessing "u area" of a process

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2004 > Re: Accessing "u area" of a process





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Accessing "u area" of a process
Mark

2004-11-28, 8:47 pm

Casper H.S. Dik <Casper.Dik@Sun.COM> wrote in message news:<41a9df6e$0$78279$e4fe514c@news.xs4all.nl>...
> steven_mark_99@yahoo.com (Mark) writes:
>
>
>
>
> Depends very much on the OS; in the old days, it would contain the
> "u. area" but those days are now (mostly?) gone and the data is
> presented in a more permanent fashion.


I am talking about FreeBSD here and following is the u area structure

<sys/user.h>

struct user {
struct pcb u_pcb;
struct sigacts u_sigacts; /* p_sigacts points here (use
it!) */
struct pstats u_stats; /* p_stats points here (use
it!) */
/*
* Remaining fields only for core dump and/or ptrace--
* not valid at other times!
*/
struct kinfo_proc u_kproc; /* proc + eproc */
struct md_coredump u_md; /* machine dependent glop */
};

What I am asking is in the ELF core for the process where do I find
this information for the concerned process?

Thanks
Steve



>
> In Solaris, all the relevant information is now contained in an
> Elf NOTE section (this contains process status, credential, information
> about the OS, status of all the lwps, and more)
>
> Casper

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com