Yonatan Goldschmidt

Results 58 comments of Yonatan Goldschmidt

I don't intend calling `getauxval()` itself - that one retrieves auxv values for the current process (and psutil is all about other processes). As for `/proc/pid/auxv`, which lets you access...

Specifically, I needed `AT_EXECFN` which AFAIK can not be retrieved by any other way in Linux.

> > Specifically, I needed `AT_EXECFN` which AFAIK can not be retrieved by any other way in Linux. > > Is that not [`/proc/[pid]/exe`](https://man7.org/linux/man-pages/man5/proc.5.html) (which is a symlink you can...

> > `AT_EXECFN` gives the string that was passed to the `execve` call that started the currently running executable. > > Does `/proc/[pid]/cmdline` not include that as the first null-delimited...

I have already written some snippets that extract the `auxv` and also read certain parts of it from the memory of the remote process, as an extension to `psutil`. I...

I will look into the failing test later today

I looked into the test. The logic here is incorrect: ``` # ...but if /proc/pid no longer exist we're supposed to treat # it as an alias for zombie process...

Looks like invalid output is being read from `/proc/pid/stat`. On my box (kernel 5.4.0) it has 52 fields, and this "field 39" exists since kernel 2.6.18 per the man page....

I can write an example snippet, and add some caveats of this "feature" (differences across Python versions, handling of `__slots__`, ...)

First of all, that's a really cool project you got here! I also remember you from RustPython :) My idea in https://github.com/micropython/micropython/pull/5314 was to "uninline" a single memory access whose...