Home
last modified time | relevance | path

Searched refs:pc (Results 1 – 25 of 270) sorted by relevance

1234567891011

/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c69 PathCache *pc; /* The path-list cache in which to look up the executables */ member
136 static int add_PathNode(PathCache *pc, const char *dirname);
172 static void pca_clear_cache(PathCache *pc);
177 static int pca_read_username(PathCache *pc, const char *string, int slen,
184 static int pca_extract_dir(PathCache *pc, const char *path,
191 static int pca_scan_dir(PathCache *pc, const char *dirname, CacheMem *mem);
211 static int pca_init_PcaPathConf(PcaPathConf *ppc, PathCache *pc);
217 static int pca_prepare_suffix(PathCache *pc, const char *suffix,
228 static const char *pca_prepare_prefix(PathCache *pc, const char *prefix,
236 static int pca_expand_tilde(PathCache *pc, const char *path, int pathlen,
[all …]
/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice_info.c328 handle_match (ParsingContext * pc, const char **attr) in handle_match() argument
347 pc->device->udi, in handle_match()
350 HAL_ERROR (("Could not resolve keypath '%s' on udi '%s'", key, pc->device->udi)); in handle_match()
672 handle_merge (ParsingContext * pc, const char **attr) in handle_merge() argument
676 pc->merge_type = MERGE_TYPE_UNKNOWN; in handle_merge()
688 strncpy (pc->merge_key, attr[1], MAX_KEY_SIZE); in handle_merge()
695 pc->merge_type = MERGE_TYPE_STRING; in handle_merge()
699 pc->merge_type = MERGE_TYPE_BOOLEAN; in handle_merge()
703 pc->merge_type = MERGE_TYPE_INT32; in handle_merge()
707 pc->merge_type = MERGE_TYPE_UINT64; in handle_merge()
[all …]
/illumos-gate/usr/src/uts/common/io/bpf/
H A Dbpf_filter.c141 bpf_filter(struct bpf_insn *pc, uchar_t *p, uint_t wirelen, uint_t buflen) in bpf_filter() argument
146 if (pc == 0) in bpf_filter()
153 --pc; in bpf_filter()
156 ++pc; in bpf_filter()
157 switch (pc->code) { in bpf_filter()
162 struct bpf_insn *, pc); in bpf_filter()
168 return ((uint_t)pc->k); in bpf_filter()
174 k = pc->k; in bpf_filter()
193 k = pc->k; in bpf_filter()
212 k = pc->k; in bpf_filter()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dvalidate.c73 register CANDIDATE *pc = 0, in _validate() local
320 (pc = &single)->pps = pps; in _validate()
354 if (!CHKOPTS(prs, pc, pfs)) { in _validate()
366 if (!pickfilter(prs, pc, pfs)) { in _validate()
371 best_pc = pc; in _validate()
443 for (pcend2 = pc = arena; pc < pcend; pc++) { in _validate()
444 if (CHKU(prs, pc->pps) && CHKOPTS(prs, pc, pfs)) in _validate()
445 *pcend2++ = *pc; in _validate()
447 free_candidate (pc); in _validate()
465 for (pcend2 = pc = arena; pc < pcend; pc++) in _validate()
[all …]
H A Dpickfilter.c80 pickfilter(RSTATUS *prs, CANDIDATE *pc, FSTATUS *pfs) in pickfilter() argument
85 register PSTATUS * pps = pc->pps; in pickfilter()
272 valid_printer_types = pc->printer_types; in pickfilter()
278 pc->fast = 0; in pickfilter()
279 pc->slow = 0; in pickfilter()
280 pc->output_type = 0; in pickfilter()
281 pc->flags = 0; in pickfilter()
306 pc->printer_type = Strdup(prs->request->input_type); in pickfilter()
324 pc->printer_type = Strdup(*(pc->printer_types)); in pickfilter()
357 &(pc->flags) in pickfilter()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dstrmatch.c176 register int pc; in onematch() local
191 switch (pc = mbgetchar(p)) in onematch()
199 if (pc == '(' || *p == '(') in onematch()
205 subp = p + (pc != '('); in onematch()
212 if (pc == '*' || pc == '?' || pc == '+' && oldp == r) in onematch()
222 if (pc == '*' || pc == '+') in onematch()
229 pc = (pc != '!'); in onematch()
232 if (grpmatch(mp, n, olds, subp, s, flags) == pc) in onematch()
257 else if (pc == '*') in onematch()
266 switch (pc = mbgetchar(p)) in onematch()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_icmp.c71 char *pt, *pc, *px; in interpret_icmp() local
84 pc = ""; in interpret_icmp()
92 pc = buff; in interpret_icmp()
102 pc = buff; in interpret_icmp()
104 pc = "Bad net"; in interpret_icmp()
112 pc = buff; in interpret_icmp()
114 pc = "Bad host"; in interpret_icmp()
121 pc = buff; in interpret_icmp()
123 pc = "Bad protocol"; in interpret_icmp()
135 pc = buff; in interpret_icmp()
[all …]
H A Dsnoop_mip.c287 char *pt, *pc = NULL; in interpret_mip_cntrlmsg() local
318 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL)) ? in interpret_mip_cntrlmsg()
322 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
326 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
330 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
334 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
338 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
342 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
347 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
351 pc = ((flags & F_ALLSUM) || (flags & F_DTAIL))? in interpret_mip_cntrlmsg()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Dfromclass.c51 CLASS *pc; local
53 if (!(pc = getclass(class))) {
58 if (!searchlist(printer, pc->members)) {
63 _fromclass (printer, class, pc);
75 register CLASS *pc; local
78 while ((pc = getclass(NAME_ALL)))
79 if (searchlist(printer, pc->members))
80 _fromclass (printer, pc->name, pc);
94 static void _fromclass (printer, class, pc) in _fromclass() argument
97 CLASS *pc;
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dmacro.c49 unsigned char *pc; in copyto() local
67 pc = readw(d); in copyto()
69 while(*pc) { in copyto()
72 pushstak(*pc++); in copyto()
75 pc = readw(d); in copyto()
78 if (*pc) { in copyto()
79 while (*pc) { in copyto()
82 pushstak(*pc++); in copyto()
87 pushstak(*pc); in copyto()
91 pc = readw(c); in copyto()
[all …]
H A Dword.c52 unsigned char *pc; in word() local
84 pc = readw(c); in word()
91 while (c = *pc++) { in word()
117 pc = readw(c); in word()
118 while (*pc) { in word()
121 *argp++ = *pc++; in word()
130 pc = readw(cc); in word()
131 while (*pc) { in word()
134 *argp++ = *pc++; in word()
152 pc = readw(c); in word()
[all …]
/illumos-gate/usr/src/uts/sparc/dtrace/
H A Dfasttrap_isa.c277 fasttrap_return_common(struct regs *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument
288 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)]; in fasttrap_return_common()
291 if (pid == tp->ftt_pid && pc == tp->ftt_pc && in fasttrap_return_common()
391 dtrace_probe(probe->ftp_id, pc - probe->ftp_faddr, in fasttrap_return_common()
401 dtrace_probe(probe->ftp_id, pc - probe->ftp_faddr, in fasttrap_return_common()
418 uintptr_t pc = rp->r_pc; in fasttrap_pid_probe() local
420 uintptr_t orig_pc = pc; in fasttrap_pid_probe()
434 fasttrap_sigtrap(p, curthread, pc); in fasttrap_pid_probe()
459 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)]; in fasttrap_pid_probe()
465 if (pid == tp->ftt_pid && pc == tp->ftt_pc && in fasttrap_pid_probe()
[all …]
/illumos-gate/usr/src/lib/libdisasm/common/
H A Dlibdisasm.c222 dis_generic_previnstr(dis_handle_t *dhp, uint64_t pc, int n) in dis_generic_previnstr() argument
226 uint64_t res = pc; in dis_generic_previnstr()
229 return (pc); in dis_generic_previnstr()
231 if (dhp->dh_lookup(dhp->dh_data, pc, NULL, 0, &start, NULL) != 0 || in dis_generic_previnstr()
232 start == pc) in dis_generic_previnstr()
237 for (cur = 0, nseen = 0, addr = start; addr < pc; addr = dhp->dh_addr) { in dis_generic_previnstr()
247 if (addr != pc) { in dis_generic_previnstr()
271 dis_previnstr(dis_handle_t *dhp, uint64_t pc, int n) in dis_previnstr() argument
274 return (dis_generic_previnstr(dhp, pc, n)); in dis_previnstr()
276 return (dhp->dh_arch->da_previnstr(dhp, pc, n)); in dis_previnstr()
[all …]
/illumos-gate/usr/src/lib/libproc/i386/
H A DPisadep.c123 argcount_ctf(struct ps_prochandle *P, long pc, uint_t *countp) in argcount_ctf() argument
130 if (Pxlookup_by_addr(P, pc, NULL, 0, &sym, &si) != 0) in argcount_ctf()
133 if ((ctfp = Paddr_to_ctf(P, pc)) == NULL) in argcount_ctf()
161 argcount(struct ps_prochandle *P, long pc, ssize_t sz) in argcount() argument
171 if (Pread(P, instr, sizeof (instr), pc) != sizeof (instr) || in argcount()
205 long pc; in Pstack_iter() member
212 prgreg_t pc, ctf_pc; in Pstack_iter() local
221 long pc; in Pstack_iter() member
235 ctf_pc = pc = regs[R_PC]; in Pstack_iter()
237 while (fp != 0 || pc != 0) { in Pstack_iter()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dcommon.c163 char c = '\0', *pc; in parse_quote() local
167 pc = *linep; in parse_quote()
168 if (*pc == '\0') in parse_quote()
172 c = *pc++; in parse_quote()
176 if (c == '\\' && *pc != '\0') { in parse_quote()
177 c = *pc++; in parse_quote()
193 if (*pc >= '0' && *pc <= '7') { in parse_quote()
194 c = (c<<3)+(*pc++ - '0'); in parse_quote()
195 if (*pc >= '0' && *pc <= '7') in parse_quote()
196 c = (c<<3)+(*pc++ - '0'); in parse_quote()
[all …]
/illumos-gate/usr/src/uts/intel/dtrace/
H A Ddtrace_isa.c51 uintptr_t pc; in dtrace_getpcstack() local
67 pc = fp->fr_savpc; in dtrace_getpcstack()
100 pcstack[depth++] = (pc_t)pc; in dtrace_getpcstack()
115 dtrace_getustack_common(uint64_t *pcstack, int pcstack_limit, uintptr_t pc, in dtrace_getustack_common() argument
138 while (pc != 0) { in dtrace_getustack_common()
150 *pcstack++ = (uint64_t)pc; in dtrace_getustack_common()
167 pc = dtrace_fulword(&gregs[REG_PC]); in dtrace_getustack_common()
175 pc = dtrace_fuword32(&gregs[EIP]); in dtrace_getustack_common()
183 pc = dtrace_fulword(&fr->fr_savpc); in dtrace_getustack_common()
188 pc = dtrace_fuword32(&fr->fr_savpc); in dtrace_getustack_common()
[all …]
H A Dfasttrap_isa.c217 fasttrap_tracepoint_init(proc_t *p, fasttrap_tracepoint_t *tp, uintptr_t pc, in fasttrap_tracepoint_init() argument
222 size_t first = MIN(len, PAGESIZE - (pc & PAGEOFFSET)); in fasttrap_tracepoint_init()
235 if (uread(p, &instr[0], first, pc) != 0) in fasttrap_tracepoint_init()
238 uread(p, &instr[first], len - first, pc + first) != 0) { in fasttrap_tracepoint_init()
346 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
455 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
464 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
470 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
476 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
484 tp->ftt_dest = pc + tp->ftt_size + in fasttrap_tracepoint_init()
[all …]
/illumos-gate/usr/src/lib/libproc/amd64/
H A DPisadep.c163 argcount_ctf(struct ps_prochandle *P, uint32_t pc, uint_t *countp) in argcount_ctf() argument
170 if (Pxlookup_by_addr(P, pc, NULL, 0, &sym, &si) != 0) in argcount_ctf()
173 if ((ctfp = Paddr_to_ctf(P, pc)) == NULL) in argcount_ctf()
201 argcount(struct ps_prochandle *P, uint32_t pc, ssize_t sz) in argcount() argument
211 if (Pread(P, instr, sizeof (instr), (uintptr_t)pc) != sizeof (instr)) in argcount()
267 prgreg32_t pc; in Pstack_iter32() member
273 uint32_t fp, pfp, pc, ctf_pc; in Pstack_iter32() local
284 prgreg32_t pc; in Pstack_iter32() member
298 ctf_pc = pc = regs[R_PC]; in Pstack_iter32()
300 while (fp != 0 || pc != 0) { in Pstack_iter32()
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dmdb_ia32util.c215 uintptr_t pc = gsp->kregs[KREG_EIP]; in mdb_ia32_kvm_stack_iter() local
275 func(arg, pc, argc, (const long *)fr.fr_argv, &gregs) != 0) in mdb_ia32_kvm_stack_iter()
295 kregs[KREG_EIP] = pc = fr.fr_savpc; in mdb_ia32_kvm_stack_iter()
297 got_pc = (pc != 0); in mdb_ia32_kvm_stack_iter()
320 mdb_ia32_step_out(mdb_tgt_t *t, uintptr_t *p, kreg_t pc, kreg_t fp, kreg_t sp, in mdb_ia32_step_out() argument
332 if (mdb_tgt_lookup_by_addr(t, pc, MDB_TGT_SYM_FUZZY, in mdb_ia32_step_out()
334 if (pc == s.st_value && curinstr == M_PUSHL_EBP) in mdb_ia32_step_out()
336 else if (pc == s.st_value + 1 && curinstr == M_MOVL_EBP) in mdb_ia32_step_out()
357 mdb_ia32_next(mdb_tgt_t *t, uintptr_t *p, kreg_t pc, mdb_instr_t curinstr) in mdb_ia32_next() argument
383 *p = pc + sizeof (mdb_instr_t) + sizeof (uint32_t); in mdb_ia32_next()
[all …]
H A Dmdb_amd64util.c223 uintptr_t pc = gsp->kregs[KREG_RIP]; in mdb_amd64_kvm_stack_iter() local
282 if ((mdb_tgt_lookup_by_addr(t, pc, MDB_TGT_SYM_FUZZY, in mdb_amd64_kvm_stack_iter()
334 pc - s.st_value); in mdb_amd64_kvm_stack_iter()
385 if (got_pc && func(arg, pc, argc, fr_argv, &gregs) != 0) in mdb_amd64_kvm_stack_iter()
405 kregs[KREG_RIP] = pc = fr.fr_savpc; in mdb_amd64_kvm_stack_iter()
407 got_pc = (pc != 0); in mdb_amd64_kvm_stack_iter()
424 mdb_amd64_step_out(mdb_tgt_t *t, uintptr_t *p, kreg_t pc, kreg_t fp, kreg_t sp, in mdb_amd64_step_out() argument
437 if (mdb_tgt_lookup_by_addr(t, pc, MDB_TGT_SYM_FUZZY, in mdb_amd64_step_out()
439 if (pc == s.st_value && curinstr == M_PUSHQ_RBP) in mdb_amd64_step_out()
441 else if (pc == s.st_value + 1 && curinstr == M_REX_W) { in mdb_amd64_step_out()
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/
H A Dkmdb_dpi_isadep.c44 kmdb_dpi_handle_fault(kreg_t trapno, kreg_t pc, kreg_t sp, int cpuid) in kmdb_dpi_handle_fault() argument
49 "sp 0x%0?p\n", (int)trapno, pc, sp); in kmdb_dpi_handle_fault()
65 kmdb_fault(trapno, pc, sp, cpuid); in kmdb_dpi_handle_fault()
96 kreg_t pc, trapno; in kmdb_dpi_resume_common() local
101 (void) kmdb_dpi_get_register("pc", &pc); in kmdb_dpi_resume_common()
103 (void *)pc); in kmdb_dpi_resume_common()
112 (void) kmdb_dpi_get_register("pc", &pc); in kmdb_dpi_resume_common()
115 "trapno: %u\n", (void *)pc, (int)trapno); in kmdb_dpi_resume_common()
H A Dkmdb_fault_isadep.c43 print_frame(uintptr_t pc, int fnum, int safe) in print_frame() argument
50 mdb_iob_printf(mdb.m_err, " [%2d] %?p()\n", fnum, pc); in print_frame()
52 mdb_iob_printf(mdb.m_err, " [%2d] %?p %A()\n", fnum, pc, pc); in print_frame()
91 kmdb_fault_display(kreg_t trapno, kreg_t pc, kreg_t sp, int safe) in kmdb_fault_display() argument
94 sp, pc); in kmdb_fault_display()
96 mdb_iob_printf(mdb.m_err, " %A", pc); in kmdb_fault_display()
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dldebug.c324 static void kname (Proto *p, int pc, int c, const char **name) { in kname() argument
334 const char *what = getobjname(p, pc, c, name); /* search for 'c' */ in kname()
344 static int filterpc (int pc, int jmptarget) { in filterpc() argument
345 if (pc < jmptarget) /* is code conditional (inside a jump)? */ in filterpc()
347 else return pc; /* current position sets that register */ in filterpc()
355 int pc; in findsetreg() local
358 for (pc = 0; pc < lastpc; pc++) { in findsetreg()
359 Instruction i = p->code[pc]; in findsetreg()
366 setreg = filterpc(pc, jmptarget); in findsetreg()
371 setreg = filterpc(pc, jmptarget); in findsetreg()
[all …]
H A Dlcode.c39 if (fs->pc > fs->lasttarget) { /* no jumps to current position? */ in luaK_nil()
40 previous = &fs->f->code[fs->pc-1]; in luaK_nil()
79 static void fixjump (FuncState *fs, int pc, int dest) { in fixjump() argument
80 Instruction *jmp = &fs->f->code[pc]; in fixjump()
81 int offset = dest-(pc+1); in fixjump()
94 fs->lasttarget = fs->pc; in luaK_getlabel()
95 return fs->pc; in luaK_getlabel()
99 static int getjump (FuncState *fs, int pc) { in getjump() argument
100 int offset = GETARG_sBx(fs->f->code[pc]); in getjump()
104 return (pc+1)+offset; /* turn offset into absolute position */ in getjump()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_disasm.c263 libdisasm_read(void *data, uint64_t pc, void *buf, size_t buflen) in libdisasm_read() argument
269 if (pc - db->db_addr >= db->db_bufsize) { in libdisasm_read()
271 sizeof (db->db_buf), pc) != -1) { in libdisasm_read()
274 buflen, pc) != -1) { in libdisasm_read()
279 (uintptr_t)pc); in libdisasm_read()
283 db->db_addr = pc; in libdisasm_read()
286 offset = pc - db->db_addr; in libdisasm_read()
291 db->db_nextaddr = pc + len; in libdisasm_read()
298 char *buf, size_t len, mdb_tgt_addr_t pc) in libdisasm_ins2str() argument
330 if (dis_disassemble(dhp, pc, buf, len) != 0) in libdisasm_ins2str()
[all …]

1234567891011