cregit-Linux how code gets into the kernel

Release 4.14 arch/sparc/include/asm/jump_label.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SPARC_JUMP_LABEL_H

#define _ASM_SPARC_JUMP_LABEL_H

#ifndef __ASSEMBLY__

#include <linux/types.h>


#define JUMP_LABEL_NOP_SIZE 4


static __always_inline bool arch_static_branch(struct static_key *key, bool branch) { asm_volatile_goto("1:\n\t" "nop\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" ".align 4\n\t" ".word 1b, %l[l_yes], %c0\n\t" ".popsection \n\t" : : "i" (&((char *)key)[branch]) : : l_yes); return false; l_yes: return true; }

Contributors

PersonTokensPropCommitsCommitProp
Peter Zijlstra2750.94%120.00%
Ingo Molnar1528.30%240.00%
Jason Baron815.09%120.00%
David S. Miller35.66%120.00%
Total53100.00%5100.00%


static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) { asm_volatile_goto("1:\n\t" "b %l[l_yes]\n\t" "nop\n\t" ".pushsection __jump_table, \"aw\"\n\t" ".align 4\n\t" ".word 1b, %l[l_yes], %c0\n\t" ".popsection \n\t" : : "i" (&((char *)key)[branch]) : : l_yes); return false; l_yes: return true; }

Contributors

PersonTokensPropCommitsCommitProp
Peter Zijlstra3973.58%133.33%
Jason Baron815.09%133.33%
Ingo Molnar611.32%133.33%
Total53100.00%3100.00%

typedef u32 jump_label_t; struct jump_entry { jump_label_t code; jump_label_t target; jump_label_t key; }; #endif /* __ASSEMBLY__ */ #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Peter Zijlstra6645.21%114.29%
David S. Miller3423.29%114.29%
Ingo Molnar2315.75%228.57%
Jason Baron1610.96%114.29%
Anton Blanchard64.11%114.29%
Greg Kroah-Hartman10.68%114.29%
Total146100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.