and sets the
pointers in ps_strings. kern.proc.args sysctl first tries the p_args,
and falls back to reading ps_strings and following the pointers if
p_args is NULL.
Ah, that's what I get for scanning through years of updates too fast.
:-)
This seems a bit of a worst of both worlds
-address limitation.
The cost is a bit more kernel code (for the sysctl()s) and this
per-process data, but there is no more messing-about with where
is ps_strings in this memory-layout / emulation etc. (Meanwhile
libkvm still retrieves the arguments. It just does it now with
sysctl().)
Yes
First, I want to thank Super Bisquit, Fernando and Chris for their inputs.
Second, the ps_strings struct remains in use to report information about
the running process back to the user and operating system, and as such
enriches the content of the FreeBSD kernel, so it's worth create this man
page
Yes, p_args caches the arguments, but not always. Right now, kernel
does not cache arguments if the string is longer than 256 bytes. Look
for ps_arg_cache_limit in kern_exec.c.
setproctitle() always informs the kernel with sysctl and sets the
pointers in ps_strings. kern.proc.args sysctl first
First, I want to thank Super Bisquit, Fernando and Chris for their inputs.
Second, the ps_strings struct remains in use to report information about
the running process back to the user and operating system, and as such
enriches the content of the FreeBSD kernel, so it's worth create this man
page
for documentation to
create the ps_strings structure man page because isn't covered in other man
page such e.g. execve(2). So, I'm interested to know for what it's
currently used.
Any input will be appreciated.
--CJPM
[1] http://lists.freebsd.org/pipermail/freebsd-doc/2013-July/022422
On Sat, Aug 17, 2013 at 8:00 PM, Carlos Jacobo Puga Medina
cjpug...@gmail.com wrote:
Hi people,
Despite I made a request not long ago[1], I'm looking for documentation to
create the ps_strings structure man page because isn't covered in other man
page such e.g. execve(2). So, I'm interested
Despite I made a request not long ago[1], I'm looking for
documentation to create the ps_strings structure man page because
isn't covered in other man page such e.g. execve(2). So, I'm
interested to know for what it's currently used.
Nothing. (Well, backwards compatibility, depending on how far
Hi people,
Despite I made a request not long ago[1], I'm looking for documentation to
create the ps_strings structure man page because isn't covered in other man
page such e.g. execve(2). So, I'm interested to know for what it's
currently used.
Any input will be appreciated.
--CJPM
[1] http
9 matches
Mail list logo