| /freebsd-src/sys/kern/ |
| H A D | subr_filter.c | 1 /*- 2 * Copyright (c) 2016-2019 Netflix, Inc. 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 37 reset_time(struct time_filter *tf, uint32_t time_len) in reset_time() argument 39 tf->cur_time_limit = time_len; in reset_time() 43 reset_time_small(struct time_filter_small *tf, uint32_t time_len) in reset_time_small() argument 45 tf->cur_time_limit = time_len; in reset_time_small() 49 * A time filter can be a filter for MIN or MAX. 56 * to the filter. You also provide a time (now). The filter will 59 * window of time. Time is a relative thing, it might be ticks [all …]
|
| /freebsd-src/stand/libsa/ |
| H A D | pkgfs.c | 1 /*- 2 * Copyright (c) 2007-2014, Juniper Networks, Inc. 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 132 static int cache_data(struct tarfile *tf, int); 138 struct tarfile *tf, *tfn; in pkgfs_cleanup() local 141 inflateEnd(&package->pkg_zs); in pkgfs_cleanup() 142 close(package->pkg_fd); in pkgfs_cleanup() 144 tf = package->pkg_first; in pkgfs_cleanup() 145 while (tf != NULL) { in pkgfs_cleanup() 146 tfn = tf->tf_next; in pkgfs_cleanup() [all …]
|
| /freebsd-src/sys/powerpc/powerpc/ |
| H A D | exec_machdep.c | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause AND BSD-2-Clause 24 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 33 /*- 48 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 152 struct trapframe *tf; in sendsig() local 169 p = td->td_proc; in sendsig() 172 psp = p->p_sigacts; in sendsig() 173 mtx_assert(&psp->ps_mtx, MA_OWNED); in sendsig() 174 tf = td->td_frame; in sendsig() [all …]
|
| /freebsd-src/sys/sys/ |
| H A D | tim_filter.h | 3 /*- 4 * Copyright (c) 2016-9 Netflix, Inc. 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 37 * the cache-line size for an amd64 processor. Other processors 66 * To conserve on space there is a code duplication here (this 68 * is duplicated to have a filter with a value of uint32_t instead 69 * of a uint64_t. This saves 20 bytes and the structure size 83 int setup_time_filter(struct time_filter *tf, int fil_type, uint32_t time_len); 84 void reset_time(struct time_filter *tf, uint32_t time_len); 85 void forward_filter_clock(struct time_filter *tf, uint32_t ticks_forward); [all …]
|
| /freebsd-src/contrib/openpam/t/ |
| H A D | t_openpam_readlinev.c | 1 /*- 2 * Copyright (c) 2012-2017 Dag-Erling Smørgrav 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 56 * Read a line from the temp file and verify that the result matches our 57 * expectations: whether a line was read at all, how many and which words 62 orlv_expect(struct t_file *tf, const char **expectedv, int lines, int eof) in orlv_expect() argument 73 gotv = openpam_readlinev(tf->file, &lineno, &gotc); in orlv_expect() 74 if (t_ferror(tf)) in orlv_expect() 75 err(1, "%s(): %s", __func__, tf->name); in orlv_expect() 102 if (eof && !t_feof(tf)) { in orlv_expect() [all …]
|
| H A D | t_openpam_readword.c | 1 /*- 2 * Copyright (c) 2012-2017 Dag-Erling Smørgrav 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 55 * Read a word from the temp file and verify that the result matches our 56 * expectations: whether a word was read at all, how many lines were read 61 orw_expect(struct t_file *tf, const char *expected, int lines, int eof, int eol) in orw_expect() argument 68 got = openpam_readword(tf->file, &lineno, &len); in orw_expect() 70 if (t_ferror(tf)) in orw_expect() 71 err(1, "%s(): %s", __func__, tf->name); in orw_expect() 88 if (eof && !t_feof(tf)) { in orw_expect() [all …]
|
| /freebsd-src/contrib/bmake/ |
| H A D | import.sh | 6 GIT=${GIT:-git} 7 PAGER=${PAGER:-${LESS:-${MORE:-more}}} 16 [ $# -eq 1 ] || Error "Cd() takes a single parameter." 28 --) shift; break;; 29 -a) TARBALL=$2; shift 2;; 30 -d) RM=echo; shift;; 31 -n) ECHO=echo; shift;; 32 -P) PR=$2; shift 2;; 33 -r) REVIEWER=$2; shift 2;; 34 -u) url=$2; shift 2;; [all …]
|
| /freebsd-src/stand/userboot/test/ |
| H A D | test.c | 1 /*- 3 * Copyright (c) 2023-2024 Juniper Networks, Inc. 17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 60 int disk_index = -1; 83 return -1; in test_getc() 112 struct test_file *tf, int depth) in test_open_internal() argument 127 if (tf == NULL) { in test_open_internal() 128 tf = calloc(1, sizeof(struct test_file)); in test_open_internal() 129 if (tf == NULL) in test_open_internal() 132 } else if (tf->tf_isdir) { in test_open_internal() [all …]
|
| /freebsd-src/sys/arm/arm/ |
| H A D | trap-v6.c | 1 /*- 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 92 * - Always fatal as we do not know what does it mean. 94 * - Always fatal, but can be handled somehow in the future. 97 * - Always fatal, but who knows in the future??? 99 * - Special handling. 101 * - Always fatal as something is screwed up in page tables or hardware. 103 * - Always fatal as we do not play game with domains. 105 * - Everything should be aligned in kernel with exception of user to kernel 109 * - Accordin 210 abort_imprecise(struct trapframe * tf,u_int fsr,u_int prefetch,bool usermode) abort_imprecise() argument 242 abort_debug(struct trapframe * tf,u_int fsr,u_int prefetch,bool usermode,u_int far) abort_debug() argument 272 abort_handler(struct trapframe * tf,int prefetch) abort_handler() argument 546 abort_fatal(struct trapframe * tf,u_int idx,u_int fsr,u_int far,u_int prefetch,struct thread * td,struct ksig * ksig) abort_fatal() argument 622 abort_align(struct trapframe * tf,u_int idx,u_int fsr,u_int far,u_int prefetch,struct thread * td,struct ksig * ksig) abort_align() argument 659 abort_icache(struct trapframe * tf,u_int idx,u_int fsr,u_int far,u_int prefetch,struct thread * td,struct ksig * ksig) abort_icache() argument [all...] |
| H A D | exec_machdep.c | 3 /*- 4 * SPDX-License-Identifier: BSD-4-Clause 7 * Copyright (c) 1994-1998 Mark Brinicombe. 31 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 79 struct trapframe *tf = td->td_frame; in exec_setregs() local 81 memset(tf, in exec_setregs() 164 struct trapframe *tf = td->td_frame; get_mcontext() local 219 struct trapframe *tf = td->td_frame; set_mcontext() local 280 struct trapframe *tf; sendsig() local [all...] |
| /freebsd-src/sys/arm/include/ |
| H A D | pmc_mdep.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 36 * ARMV7 ARM Cortex-A processors 57 #define PMC_TRAPFRAME_TO_PC(TF) ((TF)->tf_pc) argument 58 #define PMC_TRAPFRAME_TO_FP(TF) ((TF)->tf_r11) argument 59 #define PMC_TRAPFRAME_TO_SVC_SP(TF) ((TF)->tf_svc_sp) argument 60 #define PMC_TRAPFRAME_TO_USR_SP(TF) ((TF)->tf_usr_sp) argument 61 #define PMC_TRAPFRAME_TO_SVC_LR(TF) ((TF)->tf_svc_lr) argument 62 #define PMC_TRAPFRAME_TO_USR_LR(TF) ((TF)->tf_usr_lr) argument [all …]
|
| /freebsd-src/sys/riscv/riscv/ |
| H A D | exec_machdep.c | 1 /*- 3 * Copyright (c) 2015-2017 Ruslan Bukin <br@bsdpad.com> 8 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme. 25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 83 frame = td->td_frame; in fill_regs() 84 regs->sepc = frame->tf_sepc; in fill_regs() 85 regs->sstatus = frame->tf_sstatus; in fill_regs() 86 regs->ra = frame->tf_ra; in fill_regs() 87 regs->sp = frame->tf_sp; in fill_regs() 88 regs->gp = frame->tf_gp; in fill_regs() [all …]
|
| H A D | vm_machdep.c | 1 /*- 2 * Copyright (c) 2015-2018 Ruslan Bukin <br@bsdpad.com> 7 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme. 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 61 * Finish a fork operation, with process p2 nearly set up. 69 struct trapframe *tf; in cpu_fork() local 76 pcb2 = (struct pcb *)(td2->td_kstack + in cpu_fork() 77 td2->td_kstack_page in cpu_fork() 185 struct trapframe *tf; cpu_set_upcall() local [all...] |
| /freebsd-src/sys/arm64/arm64/ |
| H A D | exec_machdep.c | 1 /*- 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 74 frame = td->td_frame; in fill_regs() 75 regs->sp = frame->tf_sp; in fill_regs() 76 regs->lr = frame->tf_lr; in fill_regs() 77 regs->elr = frame->tf_elr; in fill_regs() 78 regs->sps in fill_regs() 334 struct trapframe *tf; fill_regs32() local 352 struct trapframe *tf; set_regs32() local 402 struct trapframe *tf = td->td_frame; exec_setregs() local 439 struct trapframe *tf = td->td_frame; get_mcontext() local 465 struct trapframe *tf = td->td_frame; set_mcontext() local 649 struct trapframe *tf; sendsig() local [all...] |
| H A D | vm_machdep.c | 1 /*- 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 65 * Finish a fork operation, with process p2 nearly set up. 73 struct trapframe *tf; in cpu_fork() local 84 td1->td_pcb->pcb_tpidr_el0 = READ_SPECIALREG(tpidr_el0); in cpu_fork() 85 td1->td_pcb->pcb_tpidrro_el0 = READ_SPECIALREG(tpidrro_el0); in cpu_fork() 87 if ((td1->td_pcb->pcb_fpflag in cpu_fork() 219 struct trapframe *tf = td->td_frame; cpu_set_upcall() local [all...] |
| /freebsd-src/sys/i386/i386/ |
| H A D | db_trace.c | 1 /*- 21 * Pittsburgh PA 15213-3890 79 get_esp(struct trapframe *tf) in get_esp() argument 81 return (TF_HAS_STACKREGS(tf) ? tf->tf_esp : (intptr_t)&tf->tf_esp); in get_esp() 92 reg = (int *)((uintptr_t)kdb_frame + (db_expr_t)vp->valuep); in db_frame() 110 off = (intptr_t)vp->valuep; in db_frame_seg() 111 if (kdb_frame->tf_eflags & PSL_VM) { in db_frame_seg() 113 switch ((intptr_t)vp->valuep) { in db_frame_seg() 115 reg = (uint16_t *)&tfp->tf_cs; in db_frame_seg() 118 reg = (uint16_t *)&tfp->tf_vm86_ds; in db_frame_seg() [all …]
|
| H A D | exec_machdep.c | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 12 * Portions of this software were developed by A. Joseph Koshy under 33 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 139 p = td->td_proc; in osendsig() 141 sig = ksi->ksi_signo; in osendsig() 142 psp = p->p_sigacts; in osendsig() 143 mtx_assert(&psp->ps_mtx, MA_OWNED); in osendsig() 144 regs = td->td_frame; in osendsig() 145 oonstack = sigonstack(regs->tf_esp); in osendsig() [all …]
|
| /freebsd-src/sys/i386/include/ |
| H A D | pmc_mdep.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2003-2005,2008 Joseph Koshy 8 * Portions of this software were developed by A. Joseph Koshy under 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 47 * IAF Intel fixed-function PMCs. 49 * UCF Intel Uncore fixed-function PMCs. 100 #define PMC_TRAPFRAME_TO_PC(TF) ((TF)->tf_eip) argument 101 #define PMC_TRAPFRAME_TO_FP(TF) ((TF)->tf_ebp) argument 105 * whether a privilege level change (and consequent stack switch) was [all …]
|
| /freebsd-src/sys/amd64/include/ |
| H A D | pmc_mdep.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2003-2008 Joseph Koshy 8 * Portions of this software were developed by A. Joseph Koshy under 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 67 * IAF Intel fixed-function PMCs in Core2 and later CPUs. 69 * UCF Intel Uncore fixed-function PMCs. 94 #define PMC_TRAPFRAME_TO_PC(TF) ((TF)->tf_rip) argument 95 #define PMC_TRAPFRAME_TO_FP(TF) ((TF)->tf_rbp) argument 96 #define PMC_TRAPFRAME_TO_USER_SP(TF) ((TF)->tf_rsp) argument [all …]
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | SparcAsmPrinter.cpp | 1 //===-- SparcAsmPrinter.cpp - Sparc LLVM assembly writer ------- 315 SparcMCExpr::VariantKind TF = (SparcMCExpr::VariantKind) MO.getTargetFlags(); printOperand() local [all...] |
| /freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_offline/ |
| H A D | zpool_offline_002_neg.ksh | 1 #!/bin/ksh -p 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or https://opensource.org/licenses/CDDL-1.0. 48 set -A args "" "-?" "-t fakepool" "-f fakepool" "-ev fakepool" "fakepool" \ 49 "-t $TESTPOOL" "-t $TESTPOOL/$TESTFS" "-t $TESTPOOL/$TESTFS $DISKLIST" \ 50 "-t $TESTPOOL/$TESTCTR" "-t $TESTPOOL/$TESTCTR/$TESTFS1" \ 51 "-t $TESTPOOL/$TESTCTR $DISKLIST" "-t $TESTPOOL/$TESTVOL" \ 52 "-t $TESTPOOL/$TESTCTR/$TESTFS1 $DISKLIST" \ 53 "-t $TESTPOOL/$TESTVOL $DISKLIST" \ 54 "-t $DISKLIST" \ [all …]
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCInstrInfo.h | 1 //===-- PPCInstrInfo.h - PowerPC Instruction Information ------- 287 hasPCRelFlag(unsigned TF) hasPCRelFlag() argument 295 hasGOTFlag(unsigned TF) hasGOTFlag() argument 302 hasTLSFlag(unsigned TF) hasTLSFlag() argument [all...] |
| /freebsd-src/contrib/bmake/unit-tests/ |
| H A D | meta-cmd-cmp.mk | 1 # $NetBSD: meta-cmd-cmp.mk,v 1.6 2022/03/02 19:32:15 sjg Exp $ 9 tf:= .${.PARSEFILE:R} 14 CLEANFILES= ${tf}* 17 @rm -f ${CLEANFILES} 24 tests= ${tf}.cmp ${tf}.nocmp ${tf}.cmp2 25 filter_tests= ${tf}.filter 27 ${tf}.cmp: 30 ${tf}.nocmp: .NOMETA_CMP 33 # a line containing ${.OODATE} will not be compared 35 ${tf}.cmp2: [all …]
|
| /freebsd-src/sys/amd64/amd64/ |
| H A D | db_trace.c | 1 /*- 21 * Pittsburgh PA 15213-3890 52 CTASSERT(sizeof(struct dbreg) == sizeof(((struct pcpu *)NULL)->pc_dbreg)); 94 reg = (uint16_t *)((uintptr_t)kdb_frame + (db_expr_t)vp->valuep); in db_frame_seg() 110 reg = (long *)((uintptr_t)kdb_frame + (db_expr_t)vp->valuep); in db_frame() 140 struct trapframe *tf; in db_nextframe() local 158 * the instruction at the saved EIP will be part of a different in db_nextframe() 163 sym = db_search_symbol(rip - 1, DB_STGY_ANY, &offset); in db_nextframe() 210 db_printf("--- invalid trapframe %p\n", (void *)tf_addr); in db_nextframe() 215 tf = (struct trapframe *)tf_addr; in db_nextframe() [all …]
|
| /freebsd-src/stand/efi/loader/arch/amd64/ |
| H A D | trap.c | 1 /*- 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 57 * IST-specified one, e.g. to handle #SS. If hand-off cannot find 58 * unused IST slot, or create a new descriptor in GDT, we bail out. 83 void report_exc(struct trapframe *tf); 85 report_exc(struct trapframe *tf) in report_exc() argument 92 base = (uintptr_t)boot_img->ImageBase; in report_exc() 100 printf("Exception %u\n", tf->tf_trapno); in report_exc() 103 (uint16_t)tf->tf_ss, (uint16_t)tf->tf_cs, (uint16_t)tf->tf_ds, in report_exc() 104 (uint16_t)tf->tf_es, (uint16_t)tf->tf_fs, (uint16_t)tf->tf_gs); in report_exc() [all …]
|