Age | Commit message (Collapse) | Author |
|
|
|
* procstat.c (fetch_procinfo): Use PI_FETCH_TASKEVENTS.
(add_preconditions): PSTAT_TASK_EVENTS no longer needs PSTAT_TASK.
(PSTAT_PROCINFO_TASK): Add PSTAT_TASK_EVENTS to the mask.
(PSTAT_PROCINFO_MERGE): Here too.
(proc_stat_set_flags): Don't use task_info for PSTAT_TASK_EVENTS.
|
|
* spec.c (sprint_frac_value): Added case for values between 1000 and
1023. Make VALUE, FRAC size_t's and return a value of type size_t.
(ps_emit_nice_int): Removed function. Replaced by ...
(ps_emit_nice_size_t): ... this. New Function.
(ps_cmp_size_ts): New function.
(ps_vsize_getter): Return a size_t instead of an int.
(ps_rsize_getter): Likewise.
(ps_get_rmem_frac): MEM_SIZE is now a size_t.
(specs): Use ps_emit_nice_size_t instead of ps_emit_nice_int and use
ps_cmp_size_ts instead of ps_cmp_ints for RSize and VSize.
|
|
|
|
* ps.h (proc_stat_state_tags): Make decl extern, not common.
|
|
|
|
* context.c (ps_context_find_tty_by_cttyid): int -> mach_port_t
* proclist.c (proc_stat_list_add_all): unsigned -> size_t
(proc_stat_list_add_login_coll): Likewise.
(proc_stat_list_add_session): Likewise.
(proc_stat_list_add_fn_pids): Likewise.
(proc_stat_list_add_id_fn_pids): Likewise.
|
|
* host.c (ps_host_basic_info): int -> size_t
(ps_host_basic_info, ps_host_load_info): Likewise.
* ps.h: Update decls.
(struct proc_stat): unsigned -> size_t for task_events_info_size,
args_len, env_len.
* procstat.c (summarize_thread_waits): Fix argument type.
|
|
|
|
* host.c (ps_get_host): Use mach_port_t instead of host_t.
* ps.h: Update decl.
|
|
|
|
* spec.c (ps_emit_wait): Remove local extern decls for functions
actually defined static.
|
|
* filters.c (ps_own_filter): Add const to type.
(ps_not_leader_filter): Likewise.
(ps_unorphaned_filter): Likewise.
(ps_ctty_filter): Likewise.
(ps_parent_filter): Likewise.
(ps_alive_filter): Likewise.
Submitted by Maurizio Boriani <baux@debian.org>.
|
|
|
|
* host.c: Fix comments.
(ps_host_basic_info): Make INITIALIZED static; otherwise
we never cache BUF. Do not initalize static variables to 0.
(ps_host_sched_info): Likewise.
* ps.h: Doc fix.
|
|
|
|
* user.c: Include <string.h> for decls of built-ins.
|
|
|
|
* context.c (ps_context_find_tty_by_cttyid): Use the ttys_by_cttyid
hash table, not the ttys hash table.
|
|
|
|
* tty.c (struct ps_tty_abbrev): Add const to member types.
(ps_tty_abbrevs): Make const.
(ps_tty_short_name): Clean up type usage, add consts.
Include null terminator in calculation for short_name allocation size.
Save lengths and use memcpy instead of using strcpy and strcat.
|
|
|
|
* Makefile (HURDLIBS): Add shouldbeinlibc.
|
|
|
|
* common.h: Add #include <sys/mman.h> for munmap decl.
|
|
* common.h (VMFREE): Use munmap instead of vm_deallocate.
* procstat.c (merge_procinfo): Likewise.
|
|
|
|
* ps.h (PSTAT_ENV): New macro.
(struct proc_stat): New members `env', `env_len', `env_vm_alloced'.
(proc_stat_env, proc_stat_env_len): New accessor macros.
(PSTAT_USER_BASE): Increase value to leave more room for additions.
* procstat.c (proc_stat_set_flags): Handle environment.
(_proc_stat_free): Likewise.
* spec.c (ps_get_env, ps_env_getter): New function and constant.
(specs): New spec "Env" using ps_env_getter and ps_emit_args.
|
|
|
|
* context.c (ps_context_free): Don't call ihash_free on PC->procs
twice! Instead, call it on ttys, ttys_by_cttyid, and users.
|
|
* spec.c (ps_emit_past_time, ps_emit_minutes): Fix return type of
getter fn (int to void).
* spec.c (ps_get_start_time, ps_start_time_getter): New function and
constant to report task_basic_info.creation_time time stamp via
"start_time" spec.
(specs): Add "Start" fmt for it.
|
|
|
|
|
|
Provide slightly better abbreviations for various port types.
|
|
|
|
* procstat.c (summarize_thread_basic_info): Don't include the
kernel's idle threads in the summation.
(summarize_thread_sched_info): Likewise.
(summarize_thread_states): Likewise.
(summarize_thread_waits): Likewise.
|
|
|
|
Deal with FIELD->spec being NULL when advancing over a field.
|
|
|
|
Allow the user fetch hook to turn on non-user bits, even if they've already
failed in the standard code.
|
|
|
|
New function.
(specs):
Use ps_nominal_string for `Args' and `Arg0' fields.
(ps_emit_args, ps_emit_string):
Use `-' for empty values.
|
|
|
|
Interpret PS_FMT_FIELD_COLON_MOD flag to mean `print zero as "-"'.
|
|
Get rid of INAPP macro.
Fix preconditions of PSTAT_SUSPEND_COUNT.
|
|
|
|
Add INAPP field.
(struct ps_fmt):
Add ERROR field, and rename INVAL to INAPP.
|
|
Initialize INAPP & ERROR fields.
(ps_fmt_clone):
Propagate them.
(ps_fmt_write_proc_stat):
Use them.
|
|
Initialize FAILED and INAPP fields.
(PSTAT_PROCINFO):
Redefined.
(set_procinfo_flags):
Set bits in PS->inapp as appropriate.
(count_threads):
Use PSTAT_PROCINFO_TASK_THREAD_DEP.
(PSTAT_PROCINFO_TASK_THREAD_DEP):
Renamed from PSTAT_PROCINFO_THREAD.
(PSTAT_PROCINFO_THREAD, PSTAT_PROCINFO_TASK):
New macro.
(proc_stat_set_flags):
Add NEED & INAPP macros, and use them to set the inapp field as well as the
failed field.
(_proc_stat_create):
Initialize INAPP field.
|
|
|