Age | Commit message (Collapse) | Author |
|
* 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.
|
|
|
|
|
|
Correctly calculate the length of a character printed using an octal escape.
|
|
|
|
|
|
(count_threads): Take new argument HAVE, and use different thread counting
method depending on whether we have thread detail info.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
some of our spacing deficit out of it.
|
|
Pass PS->task_events_info to task_info, not its address.
|
|
|
|
(ps_fmt_clone): New function.
|
|
(proc_stat_list_clone, ps_fmt_clone): New declarations.
|
|
|
|
|
|
Take a struct proc_stat as an arg, not all the individual fields.
Correctly set old_pi_hdr.
Correctly calculate REALLY_NEED.
(set_procinfo_flags):
Use new calling merge_procinfo calling convention.
(proc_stat_set_flags):
Try mallocing a buffer for PS->args.
Move second call to set_procinfo_flags after msgport suppress test.
Add TEST_MSGPORT_FLAGS variable, & use it.
Be more picky about when we call set_procinfo_flags.
(_proc_stat_free):
Use explicit VM_ALLOCED flag for MFREEMEM.
|
|
ARGS_VM_ALLOCED fields.
|
|
error_t).
|
|
ps_fmt_spec_block. Delete EXPANSIONS_ALLOCED field.
|
|
(specs_add_alias): Use a linked list of ps_fmt_spec_blocks instead of
reallocing a block of specs.
(ps_fmt_specs_find): Change searching accordingly.
|
|
(proc_stat_set_flags): Use it, to get msgport validity testing right.
(merge_procinfo): Take and return HAVE instead of using a reference parameter.
Do mem allocation more efficiently and correctly.
(fetch_procinfo): Do conversion for PI_SIZE from/to units of sizeof (int), so
no one else has to deal with it.
(PROCINFO_MALLOC_SIZE, WAITS_MALLOC_SIZE): New macros.
(MFREEMEM): New macro combining MFREEM & MFREEVM.
(MFREEM, MFREEVM): Macros deleted.
|