MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dump_args

Function dump_args

freebsd/ddb/db_ps.c:70–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static void
71dump_args(volatile struct proc *p)
72{
73 char *args;
74 int i, len;
75
76 if (p->p_args == NULL)
77 return;
78 args = p->p_args->ar_args;
79 len = (int)p->p_args->ar_length;
80 for (i = 0; i < len; i++) {
81 if (args[i] == '\0')
82 db_printf(" ");
83 else
84 db_printf("%c", args[i]);
85 }
86}
87
88/*
89 * Layout:

Callers 3

db_ps_procFunction · 0.70
dumpthreadFunction · 0.70
db_ps.cFile · 0.70

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected