OS-7931: ::refstr would be useful

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2019-08-08T16:46:51.535Z
Updated at:2019-10-16T14:14:13.126Z

People

Created by:Former user
Reported by:Former user
Assigned to:Former user

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2019-09-13T10:39:29.171Z)

Fix Versions

2019-09-26 Bubble Boy (Release Date: 2019-09-26)

Description

refstr_t is annoying to deal with in MDB as you have to explicitly treat the string pointer separately:

> fffffe2739d24650::print proc_t p_ct_process->conp_svc_fmri->rs_string 
p_ct_process->conp_svc_fmri->rs_string = [ "s" ]
> fffffe2739d24650::print proc_t p_ct_process->conp_svc_fmri->rs_string | /s
0xfffffe23855ec348:             svc:/system/name-service-cache:default

Adding ::refstr makes this a little bit easier

Comments

Comment by Former user
Created at 2019-09-12T16:21:03.426Z

Verified via:

::help refstr
0::refstr
::refstr
exece::refstr
> ::walk proc | ::print proc_t p_ct_process->conp_svc_aux | ::refstr


Comment by Jira Bot
Created at 2019-09-13T10:39:02.076Z

illumos-joyent commit c6dd2307128aa25ac346f7818440cd5cfd1f7221 (branch master, by John Levon)

OS-7931 ::refstr would be useful
OS-7932 ::ps -s could show service FMRIs
OS-7934 ptree could show service FMRIs
OS-3513 ptools should see more process arguments
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>