products/Sources/formale Sprachen/C/Linux/arch/x86/boot/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 4 kB image not shown  

Quelle  jump_label.c   Sprache: unbekannt

 
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2023 Loongson Technology Corporation Limited
 *
 * Based on arch/arm64/kernel/jump_label.c
 */

#include <linux/kernel.h>
#include <linux/jump_label.h>
#include <asm/inst.h>

void arch_jump_label_transform(struct jump_entry *entry, enum jump_label_type type)
{
 u32 insn;
 void *addr = (void *)jump_entry_code(entry);

 if (type == JUMP_LABEL_JMP)
  insn = larch_insn_gen_b(jump_entry_code(entry), jump_entry_target(entry));
 else
  insn = larch_insn_gen_nop();

 larch_insn_patch_text(addr, insn);
}

Messung V0.5 in Prozent
C=96 H=88 G=91

[zur Elbe Produktseite wechseln0.13QuellennavigatorsAnalyse erneut starten2026-06-07]