/linux-master/tools/perf/util/ |
H A D | print_insn.h | 16 struct machine *machine, FILE *fp, struct addr_location *al); 17 size_t sample__fprintf_insn_raw(struct perf_sample *sample, FILE *fp); 20 uint64_t ip, int *lenp, int print_opts, FILE *fp);
|
H A D | color.c | 39 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, argument 48 if (isatty(fileno(fp)) || pager_in_use()) 55 fprintf(fp, "%s", color); 56 r += vfprintf(fp, fmt, args); 58 fprintf(fp, "%s", PERF_COLOR_RESET); 68 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args) argument 70 return __color_vfprintf(fp, color, fmt, args); 85 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...) argument 91 r = color_vfprintf(fp, color, fmt, args); 101 int color_fwrite_lines(FILE *fp, cons argument 142 percent_color_fprintf(FILE *fp, const char *fmt, double percent) argument [all...] |
H A D | evsel_fprintf.h | 18 int evsel__fprintf(struct evsel *evsel, struct perf_attr_details *details, FILE *fp); 39 struct strlist *bt_stop_list, FILE *fp); 44 struct strlist *bt_stop_list, FILE *fp); 48 int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
|
H A D | print_insn.c | 20 size_t sample__fprintf_insn_raw(struct perf_sample *sample, FILE *fp) argument 25 printed += fprintf(fp, "%02x", (unsigned char)sample->insn[i]); 27 printed += fprintf(fp, " "); 77 int print_opts, FILE *fp) 88 printed += fprintf(fp, "%s ", insn[0].mnemonic); 89 printed += symbol__fprintf_symname_offs(al.sym, &al, fp); 91 printed += fprintf(fp, " [%#" PRIx64 "]", op->imm); 98 printed += fprintf(fp, "%s %s", insn[0].mnemonic, insn[0].op_str); 116 uint64_t ip, int *lenp, int print_opts, FILE *fp) 132 printed = print_insn_x86(thread, cpumode, &insn[0], print_opts, fp); 76 print_insn_x86(struct thread *thread, u8 cpumode, cs_insn *insn, int print_opts, FILE *fp) argument 114 fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode, bool is64bit, const uint8_t *code, size_t code_size, uint64_t ip, int *lenp, int print_opts, FILE *fp) argument 146 sample__fprintf_insn_asm(struct perf_sample *sample, struct thread *thread, struct machine *machine, FILE *fp, struct addr_location *al) argument [all...] |
H A D | cputopo.c | 37 FILE *fp; local 51 fp = fopen(filename, "r"); 52 if (!fp) 55 sret = getline(&buf, &len, fp); 56 fclose(fp); 82 fp = fopen(filename, "r"); 83 if (!fp) 86 sret = getline(&buf, &len, fp); 87 fclose(fp); 114 fp 322 FILE *fp; local 383 FILE *fp; local 441 FILE *fp; local [all...] |
/linux-master/arch/x86/tools/ |
H A D | insn_decoder_test.c | 59 static void dump_field(FILE *fp, const char *name, const char *indent, argument 62 fprintf(fp, "%s.%s = {\n", indent, name); 63 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", 66 fprintf(fp, "%s\t.got = %d, .nbytes = %d},\n", indent, 70 static void dump_insn(FILE *fp, struct insn *insn) argument 72 fprintf(fp, "Instruction = {\n"); 73 dump_field(fp, "prefixes", "\t", &insn->prefixes); 74 dump_field(fp, "rex_prefix", "\t", &insn->rex_prefix); 75 dump_field(fp, "vex_prefix", "\t", &insn->vex_prefix); 76 dump_field(fp, "opcod [all...] |
H A D | insn_sanity.c | 52 static void dump_field(FILE *fp, const char *name, const char *indent, argument 55 fprintf(fp, "%s.%s = {\n", indent, name); 56 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", 59 fprintf(fp, "%s\t.got = %d, .nbytes = %d},\n", indent, 63 static void dump_insn(FILE *fp, struct insn *insn) argument 65 fprintf(fp, "Instruction = {\n"); 66 dump_field(fp, "prefixes", "\t", &insn->prefixes); 67 dump_field(fp, "rex_prefix", "\t", &insn->rex_prefix); 68 dump_field(fp, "vex_prefix", "\t", &insn->vex_prefix); 69 dump_field(fp, "opcod 81 dump_stream(FILE *fp, const char *msg, unsigned long nr_iter, unsigned char *insn_buff, struct insn *insn) argument [all...] |
/linux-master/kernel/time/ |
H A D | posix-clock.c | 18 * Returns NULL if the posix_clock instance attached to 'fp' is old and stale. 20 static struct posix_clock *get_posix_clock(struct file *fp) argument 22 struct posix_clock_context *pccontext = fp->private_data; 40 static ssize_t posix_clock_read(struct file *fp, char __user *buf, argument 43 struct posix_clock_context *pccontext = fp->private_data; 44 struct posix_clock *clk = get_posix_clock(fp); 51 err = clk->ops.read(pccontext, fp->f_flags, buf, count); 58 static __poll_t posix_clock_poll(struct file *fp, poll_table *wait) argument 60 struct posix_clock_context *pccontext = fp->private_data; 61 struct posix_clock *clk = get_posix_clock(fp); 75 posix_clock_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) argument 94 posix_clock_compat_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) argument 113 posix_clock_open(struct inode *inode, struct file *fp) argument 148 posix_clock_release(struct inode *inode, struct file *fp) argument 215 struct file *fp; member in struct:posix_clock_desc 221 struct file *fp = fget(clockid_to_fd(id)); local [all...] |
/linux-master/arch/microblaze/kernel/ |
H A D | unwind.c | 116 * @fp : Frame (stack) pointer for current function 125 static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, argument 139 *pprev_fp = fp + frame_size; 140 *pprev_pc = *(unsigned long *)fp; 145 *pprev_fp = fp; 155 unsigned long pc, unsigned long fp, 165 unsigned long fp, struct stack_trace *trace, 175 * @fp : Frame (stack) pointer from which we start unwinding 183 unsigned long pc, unsigned long fp, 190 pr_debug(" Unwinding with PC=%p, FP=%p\n", (void *)pc, (void *)fp); 164 unwind_trap(struct task_struct *task, unsigned long pc, unsigned long fp, struct stack_trace *trace, const char *loglvl) argument 182 microblaze_unwind_inner(struct task_struct *task, unsigned long pc, unsigned long fp, unsigned long leaf_return, struct stack_trace *trace, const char *loglvl) argument 294 unsigned long pc, fp; local [all...] |
/linux-master/arch/arm/lib/ |
H A D | call_with_stack.S | 27 push {fp, ip, lr, pc} 28 sub fp, ip, #4 43 ldmdb fp, {fp, sp, pc}
|
/linux-master/tools/testing/selftests/resctrl/ |
H A D | cache.c | 76 FILE *fp; local 78 fp = fopen(llc_occup_path, "r"); 79 if (!fp) { 84 if (fscanf(fp, "%lu", llc_occupancy) <= 0) { 86 fclose(fp); 90 fclose(fp); 106 FILE *fp; local 111 fp = fopen(filename, "a"); 112 if (!fp) { 117 fprintf(fp, "Pi [all...] |
/linux-master/arch/x86/kernel/ |
H A D | stacktrace.c | 88 copy_stack_frame(const struct stack_frame_user __user *fp, argument 93 if (!__access_ok(fp, sizeof(*frame))) 98 if (__get_user(frame->next_fp, &fp->next_fp) || 99 __get_user(frame->ret_addr, &fp->ret_addr)) 109 const void __user *fp = (const void __user *)regs->bp; local 119 if (!copy_stack_frame(fp, &frame)) 121 if ((unsigned long)fp < regs->sp) 127 fp = frame.next_fp;
|
/linux-master/arch/alpha/kernel/ |
H A D | ptrace.c | 66 * regs, 32-63 for fp regs, and 64 for the pc. Notice that sp and 92 FP_REG(fp[ 0]), FP_REG(fp[ 1]), FP_REG(fp[ 2]), FP_REG(fp[ 3]), 93 FP_REG(fp[ 4]), FP_REG(fp[ 5]), FP_REG(fp[ 6]), FP_REG(fp[ 7]), 94 FP_REG(fp[ [all...] |
/linux-master/arch/m68k/kernel/ |
H A D | traps.h | 7 asmlinkage void buserr_c(struct frame *fp);
|
/linux-master/arch/sh/kernel/cpu/ |
H A D | fpu.c | 30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; local 31 memset(fp, 0, xstate_size); 32 fp->fpscr = FPSCR_INIT; 34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; local 35 memset(fp, 0, xstate_size); 36 fp->fpscr = FPSCR_INIT;
|
/linux-master/drivers/scsi/libfc/ |
H A D | fc_rport.c | 691 * @fp: The FLOGI or PLOGI request or response frame 699 struct fc_frame *fp) 706 flogi = fc_frame_payload_get(fp, sizeof(*flogi)); 712 if (fc_frame_payload_op(fp) == ELS_FLOGI) { 735 * @fp: The FLOGI response frame 738 static void fc_rport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, argument 749 IS_ERR(fp) ? "error" : fc_els_resp_type(fp)); 751 if (fp == ERR_PTR(-FC_EX_CLOSED)) 759 if (IS_ERR(fp)) 698 fc_rport_login_complete(struct fc_rport_priv *rdata, struct fc_frame *fp) argument 823 struct fc_frame *fp; local 860 struct fc_frame *fp = rx_fp; local 982 fc_rport_plogi_resp(struct fc_seq *sp, struct fc_frame *fp, void *rdata_arg) argument 1072 struct fc_frame *fp; local 1115 fc_rport_prli_resp(struct fc_seq *sp, struct fc_frame *fp, void *rdata_arg) argument 1252 struct fc_frame *fp; local 1318 fc_rport_rtv_resp(struct fc_seq *sp, struct fc_frame *fp, void *rdata_arg) argument 1386 struct fc_frame *fp; local 1420 struct fc_frame *fp; local 1453 fc_rport_logo_resp(struct fc_seq *sp, struct fc_frame *fp, void *rdata_arg) argument 1475 struct fc_frame *fp; local 1501 fc_rport_adisc_resp(struct fc_seq *sp, struct fc_frame *fp, void *rdata_arg) argument 1562 struct fc_frame *fp; local 1594 struct fc_frame *fp; local 1633 struct fc_frame *fp; local 1697 fc_rport_recv_els_req(struct fc_lport *lport, struct fc_frame *fp) argument 1794 fc_rport_recv_req(struct fc_lport *lport, struct fc_frame *fp) argument 1847 struct fc_frame *fp = rx_fp; local 1969 struct fc_frame *fp; local 2085 struct fc_frame *fp; local 2153 fc_rport_recv_logo_req(struct fc_lport *lport, struct fc_frame *fp) argument [all...] |
H A D | fc_lport.c | 154 * @fp: The received frame 156 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) argument 158 fc_frame_free(fp); 401 * @fp: The RLIR request frame 403 static void fc_lport_recv_rlir_req(struct fc_lport *lport, struct fc_frame *fp) argument 410 fc_seq_els_rsp_send(fp, ELS_LS_ACC, NULL); 411 fc_frame_free(fp); 422 struct fc_frame *fp; local 438 fp = fc_frame_alloc(lport, len); 439 if (fp) { 457 struct fc_frame *fp; local 512 fc_lport_recv_logo_req(struct fc_lport *lport, struct fc_frame *fp) argument 740 fc_lport_set_port_id(struct fc_lport *lport, u32 port_id, struct fc_frame *fp) argument 798 struct fc_frame *fp; local 876 fc_lport_recv_els_req(struct fc_lport *lport, struct fc_frame *fp) argument 945 fc_lport_recv(struct fc_lport *lport, struct fc_frame *fp) argument 1077 fc_lport_error(struct fc_lport *lport, struct fc_frame *fp) argument 1115 fc_lport_ns_resp(struct fc_seq *sp, struct fc_frame *fp, void *lp_arg) argument 1191 fc_lport_ms_resp(struct fc_seq *sp, struct fc_frame *fp, void *lp_arg) argument 1275 fc_lport_scr_resp(struct fc_seq *sp, struct fc_frame *fp, void *lp_arg) argument 1319 struct fc_frame *fp; local 1347 struct fc_frame *fp; local 1446 struct fc_frame *fp; local 1656 fc_lport_logo_resp(struct fc_seq *sp, struct fc_frame *fp, void *lp_arg) argument 1701 struct fc_frame *fp; local 1734 fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, void *lp_arg) argument 1843 struct fc_frame *fp; local 1954 fc_lport_bsg_resp(struct fc_seq *sp, struct fc_frame *fp, void *info_arg) argument 2024 struct fc_frame *fp; local 2083 struct fc_frame *fp; local [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | stacktrace.c | 21 static inline int fp_is_valid(unsigned long fp, unsigned long sp) argument 28 return !(fp < low || fp > high || fp & 0x07); 34 unsigned long fp, sp, pc; local 38 fp = frame_pointer(regs); 42 fp = (unsigned long)__builtin_frame_address(0); 48 fp = task->thread.s[0]; 59 if (unlikely(!fp_is_valid(fp, sp))) 63 frame = (struct stackframe *)fp [all...] |
/linux-master/drivers/target/tcm_fc/ |
H A D | tfc_cmd.c | 71 struct fc_frame *fp; local 77 fp = cmd->req_frame; 78 if (fr_seq(fp)) 79 fc_seq_release(fr_seq(fp)); 80 fc_frame_free(fp); 103 struct fc_frame *fp; local 116 fp = fc_frame_alloc(lport, len); 117 if (!fp) { 122 fcp = fc_frame_payload_get(fp, len); 149 fc_fill_fc_hdr(fp, FC_RCTL_DD_CMD_STATU 180 struct fc_frame *fp; local 229 ft_recv_seq(struct fc_seq *sp, struct fc_frame *fp, void *arg) argument 269 struct fc_frame *fp; local 420 ft_recv_cmd(struct ft_sess *sess, struct fc_frame *fp) argument 460 ft_recv_req(struct ft_sess *sess, struct fc_frame *fp) argument [all...] |
/linux-master/lib/ |
H A D | test_fprobe.c | 41 static notrace int fp_entry_handler(struct fprobe *fp, unsigned long ip, argument 50 if (fp->entry_data_size) { 60 static notrace void fp_exit_handler(struct fprobe *fp, unsigned long ip, argument 74 if (fp->entry_data_size) { 82 static notrace int nest_entry_handler(struct fprobe *fp, unsigned long ip, argument 90 static notrace void nest_exit_handler(struct fprobe *fp, unsigned long ip, argument 128 struct fprobe fp = { local 134 KUNIT_EXPECT_EQ(test, 0, register_fprobe(&fp, "fprobe_selftest_target*", NULL)); 148 KUNIT_EXPECT_EQ(test, 0, unregister_fprobe(&fp)); 154 struct fprobe fp local 180 struct fprobe fp = { local 198 struct fprobe fp = { local 215 struct fprobe fp = { local [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | stacktrace.c | 84 copy_stack_frame(unsigned long fp, struct stack_frame *frame) argument 90 user_frame_tail = (unsigned long *)(fp - sizeof(struct stack_frame)); 96 if (err || (unsigned long)user_frame_tail >= frame->fp) 106 unsigned long fp = regs->regs[22]; local 108 while (fp && !((unsigned long)fp & 0xf)) { 111 frame.fp = 0; 113 if (!copy_stack_frame(fp, &frame)) 119 fp = frame.fp; [all...] |
/linux-master/arch/sparc/kernel/ |
H A D | stacktrace.c | 17 unsigned long ksp, fp; local 25 __asm__ __volatile__("mov %%fp, %0" : "=r" (ksp)); 30 fp = ksp + STACK_BIAS; 39 if (!kstack_valid(tp, fp)) 42 sf = (struct sparc_stackf *) fp; 49 fp = regs->u_regs[UREG_I6] + STACK_BIAS; 52 fp = (unsigned long)sf->fp + STACK_BIAS;
|
/linux-master/tools/perf/jvmti/ |
H A D | jvmti_agent.c | 251 FILE *fp; local 296 fp = fdopen(fd, "w+"); 297 if (!fp) { 320 if (!fwrite(&header, sizeof(header), 1, fp)) { 324 return fp; 326 fclose(fp); 334 FILE *fp = agent; local 336 if (!fp) { 346 if (!fwrite(&rec, sizeof(rec), 1, fp)) 349 fclose(fp); 365 FILE *fp = agent; local 424 FILE *fp = agent; local [all...] |
/linux-master/arch/csky/kernel/ |
H A D | stacktrace.c | 12 unsigned long fp; member in struct:stackframe 19 unsigned long fp, sp, pc; local 22 fp = frame_pointer(regs); 27 fp = current_fp; 32 fp = thread_saved_fp(task); 47 if (unlikely(fp < low || fp > high || fp & 0x3)) 50 frame = (struct stackframe *)fp; 51 sp = fp; [all...] |
/linux-master/arch/mips/fw/lib/ |
H A D | call_o32.S | 38 * and fp are preserved, v0 holds the result. This code relies on the 47 REG_S fp,O32_FRAMESZ-2*SZREG(sp) 60 move fp,sp 62 REG_SUBU fp,a1,O32_NFRAMESZ 64 REG_S sp,O32_NFRAMESZ-1*SZREG(fp) 70 sw a6,4*O32_SZREG(fp) 71 sw a7,5*O32_SZREG(fp) 74 PTR_LA t1,6*O32_SZREG(fp) 84 move sp,fp 99 REG_L fp,O32_FRAMES [all...] |