Project

General

Profile

Bug #11689

::refstr would be useful

Added by John Levon about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

http://smartos.org/bugview/OS-7931

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

History

#1

Updated by John Levon about 1 year ago

  • Description updated (diff)
#2

Updated by John Levon about 1 year ago

Tested that ::refstr behaved as expected with a variety of inputs

#3

Updated by Electric Monk about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit d13dc62b448d915b4713212ba004dc4fb0accde4

commit  d13dc62b448d915b4713212ba004dc4fb0accde4
Author: John Levon <john.levon@joyent.com>
Date:   2019-10-16T14:07:54.000Z

    11689 ::refstr would be useful
    Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
    Reviewed by: Jason King <jason.king@joyent.com>
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF