/ast/src/lib/libast/misc/ |
H A D | systrace.c | 25 * trace systems calls if possible 43 static char* trace[] = { "trace", "truss", "strace", "traces" }; local 48 id = (const char*)trace[0]; 50 out += sfsprintf(out, sizeof(buf), "%s/.%s/%s", s, trace[0], id); 53 av[1] = trace[0]; 62 for (n = 0; n < elementsof(trace); n++) 63 if (!procfree(procopen(trace[n], av + 1, NiL, ov, PROC_ARGMOD|PROC_GID|PROC_UID|(n == (elementsof(trace) - 1) ? PROC_CLEANUP : 0))))
|
/ast/src/lib/libpz/ |
H A D | pzfixed.c | 60 Error_f trace; local 62 trace = pz && error_info.trace <= -2 ? pz->disc->errorf : 0; 70 if (trace) 71 (*trace)(pz, pz->disc, -2, "pzfixed: siz=%I*d buf=%p z=%I*u", sizeof(siz), siz, buf, sizeof(z), z); 88 if (n && trace) 89 (*trace)(pz, pz->disc, -2, "pzfixed: newline terminated %u byte records", n); 95 if (trace) 96 (*trace)(pz, pz->disc, -2, "pzfixed: LEN REP BEST FREQ"); 124 if (trace) [all...] |
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_message.c | 40 void trace(int level, ...) function
|
H A D | vcs_rscs.h | 167 #define message(x) do { trace x; } while(0)
|
H A D | vcs.c | 224 error_info.trace = -(int)strtol(argv[1], (char**)0, 0); 225 n = sfsprintf(ret, n, "I debug level %d\n", -error_info.trace );
|
/ast/src/lib/libtksh/src/ |
H A D | var.c | 36 Namval_t *nv; /* Namval trace create with */ 366 /* The following is a bad hack to see if the trace returned an 387 if (put_result) /* Error in set trace */ 427 if ((result = nv_getval(namval)) == NULL) /* Error in trace */ 573 Tcl_Trace_Info trace, *traceinfo; local 588 return; /* Not a trace - call next disc. */ 593 trace = traceinfo->nv ? *traceinfo : 598 arrayname = nv_name(trace.nv); 613 traceinfo->clientData = &trace; 614 result = trace 649 Tcl_Trace_Info *traceinfo, trace; local [all...] |
/ast/src/cmd/3d/ |
H A D | 3d.sh | 69 [d:debug?Set the debug trace level to \alevel\a. Higher levels produce more 78 [o:output?\b--trace\b and \b--debug\b output is written to \afile\a instead 81 [t:trace?If \aid\a is \b1\b then intercepted system calls for all child 122 [+trace=\avalue\a? ] 214 trace= 242 d) trace="$trace/debug=$OPTARG" ;; 248 t) trace="$trace/trace [all...] |
H A D | syscall3d.c | 25 * 3d system call trace 344 if (state.kernel || state.trace.pid <= 1 || (on = fsfd(&state.fs[FS_option])) <= 0 || !(state.test & 0100) && !(MSG_MASK(cp->call) & (state.trace.call & ~MSG_MASK(error_info.trace ? 0 : MSG_nop)))) 349 if (!state.trace.count) 352 if (state.trace.pid > 2) 353 bprintf(&b, e, "[%d] ", state.trace.pid); 426 if (state.trace.pid > 2) 427 bprintf(&b, e, " [%d] %s\n", state.trace.pid, state.cmd); 536 if (!state.trace [all...] |
H A D | init.c | 594 * trace output -- special case to capture redirection early 643 if (!x && error_info.trace || x == HASHKEY5('d','e','b','u','g')) 647 n = sfsprintf(buf, 0, "- /#%s/debug=%d ", fs->special, -error_info.trace); 770 if (!x && state.trace.count || x == HASHKEY5('c','o','u','n','t')) 774 n = sfsprintf(buf, 0, "- /#%s/%scount ", fs->special, state.trace.count ? state.null : "no"); 782 * syscall trace 785 if (!x && state.trace.pid || x == HASHKEY5('t','r','a','c','e')) 789 n = sfsprintf(buf, 0, "- /#%s/trace=%u ", fs->special, state.trace.pid + ((flags & (MAP_EXEC|MAP_INIT)) && state.trace [all...] |
H A D | error.c | 118 if ((fd = fsfd(&state.fs[FS_option])) <= 0 || level < error_info.trace || lib && (error_info.clear & ERROR_LIBRARY) || level < 0 && error_info.mask && !(error_info.mask & (1<<(-level - 1)))) 124 if (error_info.trace < 0) flags |= ERROR_LIBRARY|ERROR_SYSTEM; 162 if (error_info.trace < -1) bprintf(&b, e, "debug%d:%s", level, level > -10 ? " " : "");
|
/ast/src/lib/libcodex/ |
H A D | codexlib.h | 58 char* trace; member in struct:Codexstate_s
|
H A D | codex.c | 355 "trace", 356 "Debug trace wrapper.", 377 "trace", OPT_TRACE, 394 codexstate.trace = n ? strdup(v) : (char*)0; 443 Codexmeth_t* trace; local 578 if (codexstate.trace && strmatch(name, codexstate.trace)) 583 if ((flags & (CODEX_TRACE|CODEX_VERBOSE)) && (trace = memdup(&codex_trace, sizeof(codex_trace)))) 586 trace = 0; 596 if (trace) [all...] |
/ast/src/lib/libexpr/ |
H A D | extoken.c | 37 * trace c for op 41 trace(Expr_t* ex, int lev, char* op, int c) function 197 * trace wrapper for extoken() 210 trace(ex, 0, "exlex", c); 216 #define trace(p,a,b,c) macro 247 else trace(ex, -1, "expop sp FAIL", 0); 257 else trace(ex, -1, "expop fp FAIL", 0); 264 trace(ex, -1, "expop sp FORCE", 0); 273 trace(ex, -3, "ex--lex", c);
|
/ast/src/cmd/nmake/ |
H A D | main.c | 112 * debug trace levels are controlled by error_info.trace 118 * level trace 119 * 0 no trace 120 * 1 basic make trace 130 * 11 bindfile() trace 135 * 20 bootstrap trace 177 * 0x00000008 bindfile() directory prune trace 178 * 0x00000010 expand() trace 180 * 0x00000040 bindalias() trace 297 int trace; local [all...] |
/ast/src/lib/libast/include/ |
H A D | debug.h | 41 #define message(x) do if (error_info.trace < 0) { error x; } while (0) 42 #define messagef(x) do if (error_info.trace < 0) { errorf x; } while (0)
|
H A D | error.h | 134 int indent; /* debug trace indent level */ 137 int mask; /* multi level debug trace mask */ 139 int trace; /* debug trace level */ member in struct:Error_info_s 149 unsigned long time; /* debug time trace */
|
/ast/src/cmd/mam/ |
H A D | mamtst.c | 65 error_info.trace = -opt_info.num;
|
/ast/src/cmd/cs/ |
H A D | tst-old.c | 104 error_info.trace = -(int)strtol(dat + 1, NiL, 0); 105 n = sfsprintf(buf, sizeof(buf), "I debug level %d\n", -error_info.trace);
|
H A D | tst.c | 97 error_info.trace = -(int)strtol(dat + 1, NiL, 0); 98 n = sfsprintf(buf, sizeof(buf), "I debug level %d\n", -error_info.trace);
|
H A D | nam.c | 95 error_info.trace = -strtol(logical, NiL, 10);
|
H A D | fs_env.c | 143 error_info.trace = -strtol(logical, NiL, 10); 176 if (error_info.trace <= -4)
|
/ast/src/cmd/at/ |
H A D | at.c | 178 char* trace = 0; local 248 trace = opt_info.arg; 304 sfprintf(sp, "%c%s", AT_DEBUG, trace);
|
/ast/src/cmd/tw/ |
H A D | xargs.c | 77 "[t:trace|verbose?Print the command line on the standard error" 201 error_info.trace = -opt_info.num;
|
/ast/src/cmd/kshlib/cmdtst/ |
H A D | xargs.c | 76 "[t:trace|verbose?Print the command line on the standard error before " 212 error_info.trace = -opt_info.num;
|
/ast/src/cmd/warp/ |
H A D | warp.c | 263 int trace; member in struct:__anon241 398 state.trace = 1; 406 if (state.trace) 430 if (state.trace) 1097 if (state.trace) 1106 if (state.trace) 1112 else if (state.trace) 1217 if (state.trace) 1226 if (state.trace) 1232 else if (state.trace) [all...] |