Lines Matching refs:from
70 * return the type of control flow change at address "from"
80 * While recording branches, some processors can report the "from"
85 * reported "from" address and the actual branch instruction address.
87 static int get_branch_type(unsigned long from, unsigned long to, int abort,
103 from_plm = kernel_ip(from) ? X86_BR_KERNEL : X86_BR_USER;
109 if (from == 0 || to == 0)
124 bytes_left = copy_from_user_nmi(buf, (void __user *)from,
134 * faulted. This means userspace can control the from address.
138 if (kernel_text_address(from) && !in_gate_area_no_mm(from)) {
139 addr = (void *)from;
185 * we need to first look at the from and to priv levels. If they
187 * a ring transition. If the from instruction is not a ring
207 int branch_type(unsigned long from, unsigned long to, int abort)
209 return get_branch_type(from, to, abort, false, NULL);
212 int branch_type_fused(unsigned long from, unsigned long to, int abort,
215 return get_branch_type(from, to, abort, true, offset);