bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add last processor to process stat


From: Almudena Garcia
Subject: Re: [PATCH] Add last processor to process stat
Date: Mon, 28 Oct 2019 19:46:18 +0100

Something as this?

El lun., 28 oct. 2019 a las 19:24, Samuel Thibault (<samuel.thibault@gnu.org>) escribió:
Almudena Garcia, le lun. 28 oct. 2019 19:16:28 +0100, a ecrit:
> > As I said, look for the thread_info() calls, to fill the field if the
> > returned count doesn't include it.
>
> process_file_gc_stat(), the function which write the stat structure, doesn't
> calls to thread_info().

Indeed, it gets it from proc_stat_thread_basic_info, which gets
it from the ps parameter, which is created by _proc_stat_create
and filled by proc_stat_set_flags, which calls set_procinfo_flags,
which calls merge_procinfo, which calls fetch_procinfo, which calls
proc_getprocinfo, i.e. proc's S_proc_getprocinfo() RPC.

But we didn't need to see that route anyway: we add information returned
by thread_info(), so it's simply the callers of thread_info() which need
to be fixed. The rest will follow.

Samuel

Attachment: add_lastprocessor_v6.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]