Project

General

Profile

Actions

Bug #11689

closed

::refstr would be useful

Added by John Levon over 3 years ago. Updated over 3 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

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


Related issues

Is duplicate of illumos gate - Feature #4702: would like ::refstrDuplicate2014-03-24

Actions
Actions #1

Updated by John Levon over 3 years ago

  • Description updated (diff)
Actions #2

Updated by John Levon over 3 years ago

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

Actions #3

Updated by Electric Monk over 3 years 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>

Actions #4

Updated by Andy Fiddaman over 2 years ago

Actions

Also available in: Atom PDF