/linux-master/arch/nios2/kernel/ |
H A D | misaligned.c | 51 static inline u32 get_reg_val(struct pt_regs *fp, int reg) argument 53 u8 *p = ((u8 *)fp) + reg_offsets[reg]; 57 static inline void put_reg_val(struct pt_regs *fp, int reg, u32 val) argument 59 u8 *p = ((u8 *)fp) + reg_offsets[reg]; 66 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) argument 75 fp->ea -= 4; 77 if (fixup_exception(fp)) { 81 in_kernel = !user_mode(fp); 83 isn = *(unsigned long *)(fp->ea); 93 addr = get_reg_val(fp, [all...] |
/linux-master/tools/perf/ui/stdio/ |
H A D | hist.c | 22 static size_t callchain__fprintf_left_margin(FILE *fp, int left_margin) argument 25 int ret = fprintf(fp, " "); 28 ret += fprintf(fp, " "); 33 static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask, argument 37 size_t ret = callchain__fprintf_left_margin(fp, left_margin); 41 ret += fprintf(fp, "| "); 43 ret += fprintf(fp, " "); 45 ret += fprintf(fp, "\n"); 50 static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_node *node, argument 61 ret += callchain__fprintf_left_margin(fp, left_margi 109 __callchain__fprintf_graph(FILE *fp, struct rb_root *root, u64 total_samples, int depth, int depth_mask, int left_margin) argument 217 callchain__fprintf_graph(FILE *fp, struct rb_root *root, u64 total_samples, u64 parent_samples, int left_margin) argument 282 __callchain__fprintf_flat(FILE *fp, struct callchain_node *node, u64 total_samples) argument 305 callchain__fprintf_flat(FILE *fp, struct rb_root *tree, u64 total_samples) argument 330 __callchain__fprintf_folded(FILE *fp, struct callchain_node *node) argument 356 callchain__fprintf_folded(FILE *fp, struct rb_root *tree, u64 total_samples) argument 381 hist_entry_callchain__fprintf(struct hist_entry *he, u64 total_samples, int left_margin, FILE *fp) argument 457 hist_entry__hierarchy_fprintf(struct hist_entry *he, struct perf_hpp *hpp, struct hists *hists, FILE *fp) argument 538 hist_entry__block_fprintf(struct hist_entry *he, char *bf, size_t size, FILE *fp) argument 562 hist_entry__individual_block_fprintf(struct hist_entry *he, char *bf, size_t size, FILE *fp) argument 581 hist_entry__fprintf(struct hist_entry *he, size_t size, char *bf, size_t bfsz, FILE *fp, bool ignore_callchains) argument 619 print_hierarchy_indent(const char *sep, int indent, const char *line, FILE *fp) argument 632 hists__fprintf_hierarchy_headers(struct hists *hists, struct perf_hpp *hpp, FILE *fp) argument 728 fprintf_line(struct hists *hists, struct perf_hpp *hpp, int line, FILE *fp) argument 753 hists__fprintf_standard_headers(struct hists *hists, struct perf_hpp *hpp, FILE *fp) argument 800 hists__fprintf_headers(struct hists *hists, FILE *fp) argument 817 hists__fprintf(struct hists *hists, bool show_header, int max_rows, int max_cols, float min_pcnt, FILE *fp, bool ignore_callchains) argument 900 events_stats__fprintf(struct events_stats *stats, FILE *fp, bool skip_empty) argument [all...] |
/linux-master/arch/arm64/kvm/hyp/nvhe/ |
H A D | stacktrace.c | 20 * @fp : frame pointer at which to start the unwinding. 26 static void hyp_prepare_backtrace(unsigned long fp, unsigned long pc) argument 33 stacktrace_info->fp = fp; 115 * @fp : frame pointer at which to start the unwinding. 121 static void pkvm_save_backtrace(unsigned long fp, unsigned long pc) argument 133 kvm_nvhe_unwind_init(&state, fp, pc); 138 static void pkvm_save_backtrace(unsigned long fp, unsigned long pc) argument 146 * @fp : frame pointer at which to start the unwinding. 152 void kvm_nvhe_prepare_backtrace(unsigned long fp, unsigne argument [all...] |
/linux-master/tools/perf/util/ |
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 | 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/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/riscv/kernel/ |
H A D | stacktrace.c | 24 unsigned long fp, sp, pc; local 28 fp = frame_pointer(regs); 32 fp = (unsigned long)__builtin_frame_address(0); 38 fp = task->thread.s[0]; 53 if (unlikely(fp < low || fp > high || fp & 0x7)) 56 frame = (struct stackframe *)fp - 1; 57 sp = fp; 58 if (regs && (regs->epc == pc) && (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...] |