Age | Commit message (Collapse) | Author |
|
(get_thread_wait): Decrement N in loop.
(get_thread_wait): Use strnlen instead of memchr.
(PSTAT_PROCINFO): Typo: PSTAT_THREAD_WAIT --> PSTAT_THREAD_WAITS.
(PSTAT_USES_MSGPORT): Add PSTAT_THREAD_WAIT.
|
|
|
|
(summarize_thread_waits): Correctly advance NEXT_WAIT. Skip threads marked
`itimer'.
(proc_stat_set_flags): Consider processes with less than 4 threads
to be candidates for a meaningful process wait status.
|
|
|
|
(_fmt_create): Get FIELD's precision, not width, from its spec.
|
|
REALLY_HAVE here.
|
|
returns successfully.
|
|
Increment SRC when reading modifiers.
Recognize '^' modifier.
|
|
(proc_stat_set_flags): Be more careful about when we fetch thread_wait
information, and synthesize a process-summary thread_wait value for lots of
threads.
(summarize_thread_waits): Only give a real summary if there's but a single
user thread.
(fetch_procinfo): Use PSTAT_THREAD_WAITS instead of PSTAT_THREAD_WAIT.
|
|
|
|
(proc_stat_set_flags): Change accordingly.
(get_thread_wait): Correctly advance WAIT.
|
|
|
|
|
|
|
|
fetch_procinfo.
|
|
|
|
(ps_fmt_set_output_width): New declaration.
(struct ps_fmt_spec): Add precision & flags fields. Change args to OUTPUT_FN.
(struct ps_fmt_field): Add precision & flags fields.
(ps_fmt_squash): Call FN on the field, not the spec.
(ps_fmt_create, ps_fmt_creation_error): Add POSIX arg.
(PS_FMT_FIELD_AT_MOD, PS_FMT_FIELD_COLON_MOD, PS_FMT_FIELD_KEEP,
PS_FMT_FIELD_UPCASE_TITLE): New macros.
(struct proc_stat): Remove exec_flags field.
(PSTAT_EXEC_FLAGS): Macro removed.
|
|
(specs_add_alias): Pass on flags field.
(specs): Add precision & flags fields.
(FG): New macro.
(ps_emit_*): Take FIELD argument instead of WIDTH.
|
|
Change syntax of fields.
Add support for precision and `@', `:', `?', & `!' modifiers.
Add POSIX argument, and support for posix-style format strings.
When using the field name as the title, use the defn, not the user's.
(ps_fmt_write_titles): Implement PS_FMT_FIELD_UPCASE_TITLE.
(ps_fmt_squash): Call FN with the field, not the field's spec.
(ps_fmt_squash_flags): Appropiately modify the function we use.
(ps_fmt_create, ps_fmt_creation_error): Add POSIX argument.
|
|
|
|
(ps_user_passwd): Use it.
(ps_user_uname_create, ps_user_passwd_create): New functions.
|
|
|
|
(ps_emit_seconds): Use new args to fmt_seconds.
(ps_emit_minutes): Use new args to fmt_minutes.
|
|
(ps_fmt_create): Call _fmt_create.
(ps_fmt_creation_error): New function.
|
|
|
|
attributes (that are likely to be noise).
|
|
|
|
|
|
|
|
Include "ps_msg.h".
|
|
Include "ps_term.h".
|
|
|
|
libraries. Other misc cleanups.
|
|
(specv_find, specs_add_alias): New functions.
Get rid of mega typedefs, and just use structure pointers like other hurd
libraries. Other misc cleanups.
|
|
Get rid of mega typedefs, and just use structure pointers like other hurd
libraries. Other misc cleanups.
|
|
(noise_write, noise_len, flush): New functions.
(ps_stream_write, _ps_stream_write_field): Use noise functions.
|
|
(ps_alive_p): New function.
|
|
(proc_stat_list_add_pids, proc_stat_list_add_pid,
proc_stat_list_add_all, proc_stat_list_add_login_coll,
proc_stat_list_add_session, proc_stat_list_add_pgrp):
Update declarations.
|
|
(proc_stat_list_add_pid): Add and support new return parameter PS.
(proc_stat_list_add_fn_pids, proc_stat_list_add_id_fn_pids,
proc_stat_list_add_all, proc_stat_list_add_login_coll,
proc_stat_list_add_session, proc_stat_list_add_pgrp):
Add and support new return parameters PROC_STATS & NUM_PROCS.
|
|
|
|
|
|
(ps_emit_wait): New function.
(ps_emit_string, ps_emit_string0): Use ps_stream_write_trunc_field.
(ps_get_wait): Renamed from ps_get_rpc; calling convention changed.
(ps_wait_getter): Renamed from ps_rpc_getter & contents changed accord.
(get_syscall_name, get_rpc_name): New stub functions.
|
|
(summarize_thread_waits): Return both wait and rpc info.
(get_thread_wait): New function.
(proc_stat_set_flags): Support finding wait info.
Change occurances of PSTAT_THREAD_RPC to PSTAT_THREAD_WAIT.
|
|
(PSTAT_THREAD_WAIT): Renamed from PSTAT_THREAD_RPC.
(proc_stat_thread_wait): New macro.
(ps_stream_write_trunc_field): New declaration.
|
|
(ps_stream_write_trunc_field): New function.
(_ps_stream_write_field): New function, from ps_stream_write_field.
|
|
ps_ctty_filter, ps_unorphaned_filter, ps_parent_filter, ps_std_fmt_specs):
Make const.
|
|
ps_owner_getter, ps_owner_uid_getter, ps_ppid_getter, ps_pgrp_getter,
ps_session_getter, ps_login_col_getter, ps_num_threads_getter,
ps_args_getter, ps_state_getter, ps_rpc_getter, ps_vsize_getter,
ps_rsize_getter, ps_cur_priority_getter, ps_base_priority_getter,
ps_max_priority_getter, ps_usr_time_getter, ps_sys_time_getter,
ps_tot_time_getter, ps_rmem_frac_getter, ps_cpu_frac_getter,
ps_sleep_getter, ps_susp_count_getter, ps_proc_susp_count_getter,
ps_thread_susp_count_getter, ps_tty_getter, ps_page_faults_getter,
ps_cow_faults_getter, ps_pageins_getter, ps_msgs_sent_getter,
ps_msgs_rcvd_getter, ps_zero_fills_getter):
Make const.
|
|
display if any thread isn't suspended.
(ps_get_usr_time, ps_get_sys_time, ps_get_tot_time):
Return a struct timeval instead of mach time_value_t.
(ps_cmp_times): New function.
(specs): Rearrange to use new field layout.
(ps_fmt_specs_find): Renamed from find_ps_fmt_spec; now uses a struct
ps_fmt_specs instead of an array of specs.
(specs): Renamed from ps_std_fmt_specs;
(ps_std_fmt_specs): Now of type struct ps_fmt_specs, pointing to specs.
(ps_emit_seconds, ps_emit_minutes): Use timefmt functions.
(append_fraction, sprint_long_time, ps_emit_nice_seconds): Deleted.
Include <timefmt.h>.
|
|
|
|
|