instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'arch/s390/mm/maccess' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Access kernel memory without faulting -- s390 specific implementation. * * Copyright IBM Corp. 2009, 2015 * */ #include <linux/uaccess.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/errno.h> #include <linux/gfp.h> #include <linux/cpu.h> #include...
Linux kernel'inin 'arch/s390/lib/string' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Optimized string functions * * S390 version * Copyright IBM Corp. 2004 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #define IN_ARCH_STRING_C 1 #ifndef __NO_FORTIFY # define __NO_FORTIFY #endif #include <linux/types.h> #include <linux/string....
Linux kernel'inin 'arch/s390/lib/find' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * MSB0 numbered special bitops handling. * * The bits are numbered: * |0..............63|64............127|128...........191|192...........255| * * The reason for this bit numbering is the fact that the hardware sets bits * in a bitmap starting at bit 0 (MSB) and we ...
Linux kernel'inin 'arch/s390/lib/probes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Common helper functions for kprobes and uprobes * * Copyright IBM Corp. 2014 */ #include <linux/errno.h> #include <asm/kprobes.h> #include <asm/dis.h> int probe_is_prohibited_opcode(u16 *insn) { if (!is_known_insn((unsigned char *)insn)) return -EINVAL; swit...
Linux kernel'inde 'arch/s390/lib/expoline' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <asm/nospec-insn.h> #include <linux/linkage.h> .macro GEN_ALL_BR_THUNK_EXTERN .irp r1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 GEN_BR_THUNK_EXTERN %r\r1 .endr .endm GEN_ALL_BR_THUNK_EXTERN ```
Linux kernel'inde 'arch/s390/lib/test_kprobes_asm' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0+ */ #include <linux/linkage.h> #include <asm/ftrace.h> #define KPROBES_TARGET_START(name) \ SYM_FUNC_START(name); \ FTRACE_GEN_NOP_ASM(name) #define KPROBES_TARGET_END(name) \ SYM_FUNC_END(name); \ SYM_DATA(name##_offs, .quad 1b - name) KPROBES_TARGET_START(kpro...
Linux kernel'inin 'arch/s390/lib/spinlock' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Out of line spinlock code. * * Copyright IBM Corp. 2004, 2006 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <linux/types.h> #include <linux/export.h> #include <linux/spinlock.h> #include <linux/jiffies.h> #include <linux/sysctl.h> #incl...
Linux işletim sistemi çekirdeği için 'arch/s390/lib/test_modules' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ */ #ifndef TEST_MODULES_H #define TEST_MODULES_H #define __REPEAT_10000_3(f, x) \ f(x ## 0); \ f(x ## 1); \ f(x ## 2); \ f(x ## 3); \ f(x ## 4); \ f(x ## 5); \ f(x ## 6); \ f(x ## 7); \ f(x ## 8); \ f(x ## 9) #define __REPEAT_10000_2(f, x) \ __REPEAT_10000_3(f, x ##...
Linux kernel'inde 'arch/s390/lib/tishift' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/linkage.h> #include <asm/nospec-insn.h> .section .noinstr.text, "ax" GEN_BR_THUNK %r14 SYM_FUNC_START(__ashlti3) lmg %r0,%r1,0(%r3) cije %r4,0,1f lhi %r3,64 sr %r3,%r4 jnh 0f srlg %r3,%r1,0(%r3) sllg %r0,%r0,0(%r4)...
Linux kernel'inin 'arch/s390/lib/csum-partial' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <asm/checksum.h> #include <asm/fpu.h> /* * Computes the checksum of a memory block at src, length len, * and adds in "sum" (32-bit). If copy is true copies to dst. * * Returns a 32-bit number suitable for feeding into itself * or csum_tc...
Linux kernel'inin 'arch/s390/lib/test_modules' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ #include <kunit/test.h> #include <linux/module.h> #include "test_modules.h" /* * Test that modules with many relocations are loaded properly. */ static void test_modules_many_vmlinux_relocs(struct kunit *test) { int result = 0; #define CALL_RETURN(i) result += test_modul...
Linux kernel'inin 'arch/s390/lib/test_kprobes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ #include <linux/kernel.h> #include <linux/kprobes.h> #include <linux/random.h> #include <kunit/test.h> #include "test_kprobes.h" static struct kprobe kp; static void setup_kprobe(struct kunit *test, struct kprobe *kp, const char *symbol, int offset) { kp->offset = offse...
Linux kernel'inde 'arch/s390/lib/mem' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * String handling functions. * * Copyright IBM Corp. 2012 */ #include <linux/export.h> #include <linux/linkage.h> #include <asm/nospec-insn.h> GEN_BR_THUNK %r14 /* * void *memmove(void *dest, const void *src, size_t n) */ SYM_FUNC_START(__memmove) ltgr %r...
Linux kernel'inin 'arch/s390/lib/test_modules_helpers' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ #include <linux/export.h> #include "test_modules.h" #define DEFINE_RETURN(i) \ int test_modules_return_ ## i(void) \ { \ return 1 ## i - 10000; \ } \ EXPORT_SYMBOL_GPL(test_modules_return_ ## i) REPEAT_10000(DEFINE_RETURN); ```
Linux kernel'inin 'arch/s390/lib/test_unwind' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * Test module for unwind_for_each_frame */ #include <kunit/test.h> #include <asm/unwind.h> #include <linux/completion.h> #include <linux/kallsyms.h> #include <linux/kthread.h> #include <linux/ftrace.h> #include <linux/module.h> #include <linux/timer.h> #include <linux...
Linux kernel'inin 'arch/s390/lib/error-inject' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ #include <asm/ptrace.h> #include <linux/error-injection.h> #include <linux/kprobes.h> void override_function_with_return(struct pt_regs *regs) { /* * Emulate 'br 14'. 'regs' is captured by kprobes on entry to some * kernel function. */ regs->psw.addr = regs->gprs[14]; ...
Linux kernel'inin 'arch/s390/lib/uaccess' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Standard user space access functions based on mvcp/mvcs and doing * interesting things in the secondary space mode. * * Copyright IBM Corp. 2006,2014 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Gerald Schaefer (gerald.schaefer@de.ibm.com) */...
Linux işletim sistemi çekirdeği için 'arch/s390/lib/test_kprobes' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0+ */ #ifndef TEST_KPROBES_H #define TEST_KPROBES_H extern unsigned long kprobes_target_odd_offs; extern unsigned long kprobes_target_in_insn4_offs; extern unsigned long kprobes_target_in_insn6_lo_offs; extern unsigned long kprobes_target_in_insn6_hi_offs; #endif ```
Linux kernel'inin 'arch/s390/lib/delay' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Precise Delay Loops for S390 * * Copyright IBM Corp. 1999, 2008 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, */ #include <linux/processor.h> #include <linux/export.h> #include <linux/delay.h> #include <asm/div64.h> #include <asm/timex.h> void __...
Linux kernel'inin 'arch/s390/pci/pci_clp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/slab.h> #include <linux/err.h> #include <linux/delay.h> #include <linux/pci.h...
Linux kernel'inin 'arch/s390/pci/pci_iov' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2020 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/pci.h> #include "pci_iov.h" static struct resource iov_res = { .name = "PCI IOV res", .start = 0,...
Linux kernel'inin 'arch/s390/pci/pci_irq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/irq.h> #include <linux/kernel_stat.h> #include <linux/pci.h> #include <linux/msi.h> #include <linux/irqchip/irq-msi-lib.h> #include <linux/smp.h> #include <asm/isc.h> #include <asm/airq.h> #include <asm...
Linux kernel'inin 'arch/s390/pci/pci_kvm_hook' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only /* * VFIO ZPCI devices support * * Copyright (C) IBM Corp. 2022. All rights reserved. * Author(s): Pierre Morel <pmorel@linux.ibm.com> */ #include <linux/kvm_host.h> #include <linux/export.h> struct zpci_kvm_hook zpci_kvm_hook; EXPORT_SYMBOL_GPL(zpci_kvm_hook); ```
Linux kernel'inin 'arch/s390/pci/pci_sysfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/stat.h> #include <linux/pci.h> #include "../../../drivers/pci/pci.h" #include <asm/sclp.h> #define zpci_...
Linux kernel'inin 'arch/s390/pci/pci_event' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/pci.h> #include <asm/pci_debug.h> #include <asm/pci_dma.h> #include <asm/sclp.h> #include "pci_bus.h" #...
Linux kernel'inin 'arch/s390/pci/pci_mmio' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Access to PCI I/O memory from user space programs. * * Copyright IBM Corp. 2014 * Author(s): Alexey Ishchuk <aishchuk@linux.vnet.ibm.com> */ #include <linux/kernel.h> #include <linux/syscalls.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/errno.h> #in...
Linux işletim sistemi çekirdeği için 'arch/s390/pci/pci_bus' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2020 * * Author(s): * Pierre Morel <pmorel@linux.ibm.com> * */ #ifndef __S390_PCI_BUS_H #define __S390_PCI_BUS_H #include <linux/pci.h> int zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops); void zpci_bus_device_unregister...
Linux işletim sistemi çekirdeği için 'arch/s390/pci/pci_report' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2024 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #ifndef __S390_PCI_REPORT_H #define __S390_PCI_REPORT_H struct zpci_dev; int zpci_report_status(struct zpci_dev *zdev, const char *operation, const char *status); #endif /*...
Linux kernel'inin 'arch/s390/pci/pci' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> * * The System z PCI code is a rewrite from a prototype by * the following people (Kudoz!): * Alexander Schmidt * Christoph Raisch * Hannes Hering * Hoang-Nam Nguyen * Ja...
Linux kernel'inin 'arch/s390/pci/pci_insn' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * s390 specific pci instructions * * Copyright IBM Corp. 2013 */ #include <linux/export.h> #include <linux/errno.h> #include <linux/delay.h> #include <linux/jump_label.h> #include <asm/asm-extable.h> #include <asm/facility.h> #include <asm/pci_insn.h> #include <asm/pci_d...
Linux kernel'inin 'arch/s390/pci/pci_debug' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012,2015 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/export.h> #include <linux/pci.h> #include <a...
Linux kernel'inin 'arch/s390/pci/pci_fixup' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Exceptions for specific devices, * * Copyright IBM Corp. 2025 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> */ #include <linux/pci.h> static void zpci_ism_bar_no_mmap(struct pci_dev *pdev) { /* * ISM's BAR is special. Drivers written for ISM know ...
Linux işletim sistemi çekirdeği için 'arch/s390/pci/pci_iov' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2020 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #ifndef __S390_PCI_IOV_H #define __S390_PCI_IOV_H #include <linux/pci.h> #ifdef CONFIG_PCI_IOV void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn); void zpci_iov_ma...
Linux kernel'inin 'arch/s390/pci/pci_report' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2024 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/sprintf.h> #include <linux/pci.h> #include <asm/sclp.h> #include <asm/debug.h> #include <asm/pci_deb...
Linux kernel'inin 'arch/s390/pci/pci_bus' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2020 * * Author(s): * Pierre Morel <pmorel@linux.ibm.com> * */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/slab.h> #include <linux/err.h> #include <linux/delay.h> #include <linux/seq_file.h> #include <linux/irqdom...
Linux kernel'inin 'arch/s390/boot/sclp_early_core' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "boot.h" #include "../../../drivers/s390/char/sclp_early_core.c" /* SCLP early buffer must stay page-aligned and below 2GB */ static char __sclp_early_sccb[EXT_SCCB_READ_SCP] __aligned(PAGE_SIZE); void sclp_early_setup_buffer(void) { sclp_early_set_buffer(&__sclp_ear...
Linux kernel'inin 'arch/s390/boot/string' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define IN_BOOT_STRING_C 1 #include <linux/ctype.h> #include <linux/kernel.h> #include <linux/errno.h> #undef CONFIG_KASAN #undef CONFIG_KASAN_GENERIC #undef CONFIG_KMSAN #include "../lib/string.c" /* * Duplicate some functions from the common lib/string.c * instead of fully ...
Linux işletim sistemi çekirdeği için 'arch/s390/boot/uv' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef BOOT_UV_H #define BOOT_UV_H unsigned long adjust_to_uv_max(unsigned long limit); void sanitize_prot_virt_host(void); void uv_query_info(void); #endif /* BOOT_UV_H */ ```
Linux kernel'inde 'arch/s390/boot/trampoline' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> # This function is identical to __load_psw(), but the lx-symbols GDB command # puts a breakpoint on it, so it needs to be kept separate. SYM_CODE_START(jump_to_kernel) lpswe 0(%r2) SYM_CODE_END(jump_to_kernel) ```
Linux kernel'inin 'arch/s390/boot/uv' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <asm/uv.h> #include <asm/boot_data.h> #include <asm/facility.h> #include <asm/sections.h> #include "boot.h" #include "uv.h" /* will be used in arch/s390/kernel/uv.c */ int __bootdata_preserved(prot_virt_guest); int __bootdata_preserved(prot_virt_host); struct uv_info ...
Linux kernel'inin 'arch/s390/boot/vmem' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define boot_fmt(fmt) "vmem: " fmt #include <linux/cpufeature.h> #include <linux/sched/task.h> #include <linux/pgtable.h> #include <linux/kasan.h> #include <asm/page-states.h> #include <asm/pgalloc.h> #include <asm/facility.h> #include <asm/sections.h> #include <asm/ctlreg.h> #i...
Linux kernel'inde 'arch/s390/boot/vmlinux.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <asm-generic/vmlinux.lds.h> #include <asm/vmlinux.lds.h> #include <asm/thread_info.h> #include <asm/page.h> #include <asm/sclp.h> #include "boot.h" OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390") OUTPUT_ARCH(s390:64-bit) ENTRY(startup) SECTIONS { ....
Linux işletim sistemi çekirdeği için 'arch/s390/boot/boot' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef BOOT_BOOT_H #define BOOT_BOOT_H #include <linux/types.h> #define IPL_START 0x200 #ifndef __ASSEMBLER__ #include <linux/printk.h> #include <asm/physmem_info.h> #include <asm/stacktrace.h> struct vmlinux_info { unsigned long entry; unsigned long image_size; /* do...
Linux kernel'inin 'arch/s390/boot/version' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <generated/utsversion.h> #include <generated/utsrelease.h> #include <generated/compile.h> #include "boot.h" const char kernel_version[] = UTS_RELEASE " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") " UTS_VERSION; ```
Linux kernel'inin 'arch/s390/boot/decompressor' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Definitions and wrapper functions for kernel decompressor * * Copyright IBM Corp. 2010 * * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/kernel.h> #include <linux/string.h> #include <asm/boot_data.h> #include <asm/page.h> #include "decompr...
Linux kernel'inin 'arch/s390/boot/als' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2016 */ #include <linux/kernel.h> #include <asm/processor.h> #include <asm/facility.h> #include <asm/lowcore.h> #include <asm/sclp.h> #include "boot.h" static unsigned long als[] = { FACILITIES_ALS }; static void u16_to_decimal(char *str, u16 val)...
Linux kernel'inin 'arch/s390/boot/pgm_check' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/stdarg.h> #include <linux/string.h> #include <linux/ctype.h> #include <asm/stacktrace.h> #include <asm/boot_data.h> #include <asm/lowcore.h> #include <asm/setup.h> #include <asm/sclp.h> #include <asm/uv.h> #include "boot.h" void print_s...
Linux işletim sistemi çekirdeği için 'arch/s390/boot/decompressor' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef BOOT_COMPRESSED_DECOMPRESSOR_H #define BOOT_COMPRESSED_DECOMPRESSOR_H #ifndef CONFIG_KERNEL_UNCOMPRESSED unsigned long mem_safe_offset(void); void deploy_kernel(void *output); #endif #endif /* BOOT_COMPRESSED_DECOMPRESSOR_H */ ```
Linux kernel'inin 'arch/s390/boot/printk' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/stdarg.h> #include <linux/string.h> #include <linux/ctype.h> #include <asm/stacktrace.h> #include <asm/boot_data.h> #include <asm/sections.h> #include <asm/lowcore.h> #include <asm/setup.h> #include <asm/timex.h> #include <asm/sclp.h> #i...
Linux kernel'inin 'arch/s390/boot/stackprotector' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define boot_fmt(fmt) "stackprot: " fmt #include "boot.h" #include "../kernel/stackprotector.c" ```
Linux kernel'inde 'arch/s390/boot/head' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 1999, 2010 * * Author(s): Hartmut Penner <hp@de.ibm.com> * Martin Schwidefsky <schwidefsky@de.ibm.com> * Rob van der Heij <rvdhei@iae.nl> * * There are 5 different IPL methods * 1) load the image directly into ram at address 0 a...
Linux kernel'inin 'arch/s390/boot/kaslr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2019 */ #include <linux/pgtable.h> #include <asm/physmem_info.h> #include <asm/cpacf.h> #include <asm/timex.h> #include <asm/sclp.h> #include <asm/kasan.h> #include "decompressor.h" #include "boot.h" #define PRNG_MODE_TDES 1 #define PRNG_MODE_SHA512 ...
Linux kernel'inin 'arch/s390/boot/ipl_report' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/init.h> #include <linux/ctype.h> #include <asm/ebcdic.h> #include <asm/sclp.h> #include <asm/sections.h> #include <asm/boot_data.h> #include <asm/physmem_info.h> #include <uapi/asm/ipl.h> #include "boot.h" int __bootdata_preserved(ipl_secure_flag); unsigned lon...
Linux kernel'inin 'arch/s390/boot/alternative' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define boot_fmt(fmt) "alt: " fmt #include "boot.h" #define a_debug boot_debug #include "../kernel/alternative.c" static void alt_debug_all(int type) { int i; switch (type) { case ALT_TYPE_FACILITY: for (i = 0; i < ARRAY_SIZE(alt_debug.facilities); i++) alt_debug.fa...
Linux kernel'inin 'arch/s390/boot/ipl_parm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/init.h> #include <linux/ctype.h> #include <linux/pgtable.h> #include <asm/arch-stackprotector.h> #include <asm/abs_lowcore.h> #include <asm/page-states.h> #include <asm/machine.h> #include <asm/ebcdic.h> #include <asm/sclp.h> #include <a...
Linux kernel'inin 'arch/s390/boot/ipl_data' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/ptrace.h> #include <asm/cio.h> #include <asm/asm-offsets.h> #include "boot.h" #define CCW0(cmd, addr, cnt, flg) \ { .cmd_code = cmd, .cda = addr, .count = cnt, .flags = flg, } #define PSW_MASK_DISABLED (PSW_MASK_WAIT | PSW_MASK_EA | PSW_MASK_BA) struct ipl_l...
Linux kernel'inin 'arch/s390/boot/physmem_info' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define boot_fmt(fmt) "physmem: " fmt #include <linux/processor.h> #include <linux/errno.h> #include <linux/init.h> #include <asm/physmem_info.h> #include <asm/stacktrace.h> #include <asm/boot_data.h> #include <asm/sparsemem.h> #include <asm/sections.h> #include <asm/setup.h> #i...
Linux kernel'inde 'arch/s390/boot/head_kdump' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * S390 kdump lowlevel functions (new kernel) * * Copyright IBM Corp. 2011 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <asm/sigp.h> #define DATAMOVER_ADDR 0x4000 #define COPY_PAGE_ADDR 0x6000 #ifdef CONFIG_CRASH_DUMP # # kdump entry...
Linux kernel'inin 'arch/s390/boot/startup' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #define boot_fmt(fmt) "startup: " fmt #include <linux/string.h> #include <linux/elf.h> #include <asm/page-states.h> #include <asm/boot_data.h> #include <asm/extmem.h> #include <asm/sections.h> #include <asm/diag288.h> #include <asm/maccess.h> #include <asm/machine.h> #include <a...
Linux kernel'inin 'arch/s390/boot/kmsan' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/kmsan-checks.h> void kmsan_unpoison_memory(const void *address, size_t size) { } ```
Linux kernel'inin 'arch/s390/tools/gen_facilities' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Simple program to generate defines out of facility lists that use the bit * numbering scheme from the Princples of Operations: most significant bit * has bit number 0. * * Copyright IBM Corp. 2015, 2018 * */ #include <strings.h> #include <string.h> #include <stdl...
Linux kernel'inin 'arch/s390/tools/relocs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <elf.h> #include <byteswap.h> #define USE_BSD #include <endian.h> #define ELF_BITS 64 #define ELF_MACHINE ...
Linux kernel'inin 'arch/s390/tools/gen_opcode_table' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Generate opcode table initializers for the in-kernel disassembler. * * Copyright IBM Corp. 2017 * */ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdio.h> #define STRING_SIZE_MAX 20 struct insn_type { unsigned char byte; unsigned char...
Linux kernel'inin 'arch/s390/appldata/appldata_os' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Data gathering module for Linux-VM Monitor Stream, Stage 1. * Collects misc. OS related data (CPU utilization, running processes). * * Copyright IBM Corp. 2003, 2006 * * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com> */ #define pr_fmt(fmt) "appldata: " fmt #i...
Linux kernel'inin 'arch/s390/appldata/appldata_net_sum' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Data gathering module for Linux-VM Monitor Stream, Stage 1. * Collects accumulated network statistics (Packets received/transmitted, * dropped, errors, ...). * * Copyright IBM Corp. 2003, 2006 * * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com> */ #include <li...
Linux işletim sistemi çekirdeği için 'arch/s390/appldata/appldata' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Definitions and interface for Linux - z/VM Monitor Stream. * * Copyright IBM Corp. 2003, 2008 * * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com> */ #define APPLDATA_MAX_REC_SIZE 4024 /* Maximum size of the */ /* data buffer */ #define APPLDATA_MAX_PRO...
Linux kernel'inin 'arch/s390/appldata/appldata_base' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Base infrastructure for Linux-z/VM Monitor Stream, Stage 1. * Exports appldata_register_ops() and appldata_unregister_ops() for the * data gathering modules. * * Copyright IBM Corp. 2003, 2009 * * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com> */ #define pr_f...
Linux kernel'inin 'arch/s390/appldata/appldata_mem' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Data gathering module for Linux-VM Monitor Stream, Stage 1. * Collects data related to memory management. * * Copyright IBM Corp. 2003, 2006 * * Author: Gerald Schaefer <gerald.schaefer@de.ibm.com> */ #include <linux/module.h> #include <linux/init.h> #include <linux...
Linux kernel'inin 'arch/s390/kernel/stacktrace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Stack trace management functions * * Copyright IBM Corp. 2006 */ #include <linux/perf_event.h> #include <linux/stacktrace.h> #include <linux/uaccess.h> #include <asm/asm-offsets.h> #include <asm/stacktrace.h> #include <asm/unwind.h> #include <asm/kprobes.h> #include <...
Linux kernel'inin 'arch/s390/kernel/syscall' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999, 2000 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Thomas Spatzier (tspat@de.ibm.com) * * Derived from "arch/i386/kernel/sys_i386.c" * * This file contains various random system calls that...
Linux kernel'inin 'arch/s390/kernel/uprobes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * User-space Probes (UProbes) for s390 * * Copyright IBM Corp. 2014 * Author(s): Jan Willeke, */ #include <linux/uaccess.h> #include <linux/uprobes.h> #include <linux/kdebug.h> #include <linux/sched/task_stack.h> #include <asm/facility.h> #include <asm/kprobes.h...
Linux kernel'inin 'arch/s390/kernel/vmcore_info' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-only #include <linux/vmcore_info.h> #include <linux/mm.h> #include <asm/abs_lowcore.h> #include <asm/sections.h> #include <asm/setup.h> void arch_crash_save_vmcoreinfo(void) { struct lowcore *abs_lc; VMCOREINFO_SYMBOL(lowcore_ptr); VMCOREINFO_SYMBOL(high_memory); VMCOREIN...
Linux kernel'inin 'arch/s390/kernel/irq' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2004, 2011 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, * Holger Smolinski <Holger.Smolinski@de.ibm.com>, * Thomas Spatzier <tspat@de.ibm.com>, * * This file contains interrupt related functions. */ #include <linux/kernel_s...
Linux kernel'inde 'arch/s390/kernel/mcount' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2008, 2009 * */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/ftrace.h> #include <asm/nospec-insn.h> #include <asm/ptrace.h> #include <asm/march.h> #define STACK_FRAME_SIZE_PTREGS (STACK_FRAME_OVERHEAD + __PT_SIZE)...
Linux kernel'inin 'arch/s390/kernel/trace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Tracepoint definitions for s390 * * Copyright IBM Corp. 2015 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/percpu.h> #define CREATE_TRACE_POINTS #include <asm/trace/diag.h> EXPORT_TRACEPOINT_SYMBOL(s390_diagnose); static DEFINE_PER_CPU(...
Linux kernel'inin 'arch/s390/kernel/unwind_bc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/sched.h> #include <linux/sched/task.h> #include <linux/sched/task_stack.h> #include <linux/interrupt.h> #include <asm/sections.h> #include <asm/ptrace.h> #include <asm/bitops.h> #include <asm/stacktrace.h> #include <asm/unwind.h> un...
Linux kernel'inin 'arch/s390/kernel/ctlreg' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 1999, 2023 */ #include <linux/irqflags.h> #include <linux/spinlock.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/smp.h> #include <linux/cache.h> #include <asm/abs_lowcore.h> #include <asm/ctlreg.h> /* ...
Linux kernel'inin 'arch/s390/kernel/uv' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Common Ultravisor functions and initialization * * Copyright IBM Corp. 2019, 2024 */ #define pr_fmt(fmt) "prot_virt: " fmt #include <linux/export.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/sizes.h> #include <linux/bitmap.h> #include <linux/me...
Linux kernel'inde 'arch/s390/kernel/entry' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * S390 low-level entry points. * * Copyright IBM Corp. 1999, 2012 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Hartmut Penner (hp@de.ibm.com), * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com), */ #include <linux/exp...
Linux kernel'inin 'arch/s390/kernel/nmi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Machine check handler * * Copyright IBM Corp. 2000, 2009 * Author(s): Ingo Adlung <adlung@de.ibm.com>, * Martin Schwidefsky <schwidefsky@de.ibm.com>, * Cornelia Huck <cornelia.huck@de.ibm.com>, */ #include <linux/kernel_stat.h> #include <linux/utsname.h>...
Linux kernel'inin 'arch/s390/kernel/skey' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <asm/rwonce.h> #include <asm/page.h> #include <asm/skey.h> int skey_regions_initialized; static inline unsigned long load_real_address(unsigned long address) { unsigned long real; asm volatile( " lra %[real],0(%[address])" : [real] "=d" (real) : [address] "a...
Linux kernel'inin 'arch/s390/kernel/sysinfo' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2001, 2009 * Author(s): Ulrich Weigand <Ulrich.Weigand@de.ibm.com>, * Martin Schwidefsky <schwidefsky@de.ibm.com>, */ #include <linux/cpufeature.h> #include <linux/debugfs.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/p...
Linux kernel'inde 'arch/s390/kernel/vmlinux.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* ld script to make s390 Linux kernel * Written by Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <asm/thread_info.h> #include <asm/page.h> #include <asm/ftrace.lds.h> /* * Put .bss..swapper_pg_dir as the first thing in .bss. This will * make sure it ha...
Linux kernel'inin 'arch/s390/kernel/bpf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <asm/lowcore.h> #include <linux/btf.h> __bpf_kfunc_start_defs(); __bpf_kfunc struct lowcore *bpf_get_lowcore(void) { return get_lowcore(); } __bpf_kfunc_end_defs(); ```
Linux kernel'inde 'arch/s390/kernel/reipl' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp 2000, 2011 * Author(s): Holger Smolinski <Holger.Smolinski@de.ibm.com>, * Denis Joseph Barrow, */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/nospec-insn.h> #include <asm/sigp.h> #include <asm/lowcore.h> ...
Linux kernel'inin 'arch/s390/kernel/ipl_vmparm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/minmax.h> #include <linux/string.h> #include <asm/ebcdic.h> #include <asm/ipl.h> /* VM IPL PARM routines */ size_t ipl_block_get_ascii_vmparm(char *dest, size_t size, const struct ipl_parameter_block *ipb) { int i; size_t len; char has_lowercase = 0; ...
Linux kernel'inin 'arch/s390/kernel/nospec-sysfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/device.h> #include <linux/cpu.h> #include <asm/facility.h> #include <asm/nospec-branch.h> ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) { return sysfs_emit(buf, "Mitigation: __user pointer sanitization\n"); } ...
Linux kernel'inin 'arch/s390/kernel/numa' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * NUMA support for s390 * * Implement NUMA core code. * * Copyright IBM Corp. 2015 */ #include <linux/kernel.h> #include <linux/mmzone.h> #include <linux/cpumask.h> #include <linux/memblock.h> #include <linux/node.h> #include <asm/numa.h> void __init numa_setup(void) ...
Linux kernel'inin 'arch/s390/kernel/audit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/init.h> #include <linux/types.h> #include <linux/audit.h> #include <asm/unistd.h> static unsigned dir_class[] = { #include <asm-generic/audit_dir_write.h> ~0U }; static unsigned read_class[] = { #include <asm-generic/audit_read.h> ~0U }; static unsigned write_...
Linux kernel'inin 'arch/s390/kernel/crash_dump' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * S390 kdump implementation * * Copyright IBM Corp. 2011 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/crash_dump.h> #include <linux/export.h> #include <asm/lowcore.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/mm.h>...
Linux kernel'inin 'arch/s390/kernel/machine_kexec_reloc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/elf.h> #include <asm/kexec.h> int arch_kexec_do_relocs(int r_type, void *loc, unsigned long val, unsigned long addr) { switch (r_type) { case R_390_NONE: break; case R_390_8: /* Direct 8 bit. */ *(u8 *)loc = val; break; case R_390_12: /* Direct...
Linux kernel'inin 'arch/s390/kernel/asm-offsets' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Generate definitions needed by assembly language modules. * This code generates raw asm output which is post-processed to extract * and format the required data. */ #define COMPILE_OFFSETS #include <linux/kbuild.h> #include <linux/sched.h> #include <linux/purgatory.h> ...
Linux kernel'inin 'arch/s390/kernel/cpcmd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999, 2007 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Christian Borntraeger (cborntra@de.ibm.com), */ #define pr_fmt(fmt) "cpcmd: " fmt #include <linux/kernel.h> #include <linux/export.h> #inclu...
Linux kernel'inin 'arch/s390/kernel/ptrace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Ptrace user space interface. * * Copyright IBM Corp. 1999, 2010 * Author(s): Denis Joseph Barrow * Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <lin...
Linux kernel'inin 'arch/s390/kernel/cpacf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2024 */ #define pr_fmt(fmt) "cpacf: " fmt #include <linux/cpu.h> #include <linux/device.h> #include <linux/sysfs.h> #include <asm/cpacf.h> #define CPACF_QUERY(name, instruction) \ static ssize_t name##_query_raw_read(struct file *fp, \ ...
Linux kernel'inin 'arch/s390/kernel/runtime_instr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * Author(s): Jan Glauber <jang@linux.vnet.ibm.com> */ #include <linux/kernel.h> #include <linux/syscalls.h> #include <linux/signal.h> #include <linux/mm.h> #include <linux/slab.h> #include <linux/init.h> #include <linux/errno.h> #include <linux/...
Linux kernel'inin 'arch/s390/kernel/kexec_image' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Image loader for kexec_file_load system call. * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/kexec.h> #include <asm/ipl.h> #include <asm/setup.h> static int ke...
Linux kernel'inin 'arch/s390/kernel/processor' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2008 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #define pr_fmt(fmt) "cpu: " fmt #include <linux/stop_machine.h> #include <linux/cpufeature.h> #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/random.h> #include <...
Linux kernel'inin 'arch/s390/kernel/topology' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2007, 2011 */ #define pr_fmt(fmt) "cpu: " fmt #include <linux/cpufeature.h> #include <linux/workqueue.h> #include <linux/memblock.h> #include <linux/uaccess.h> #include <linux/sysctl.h> #include <linux/cpuset.h> #include <linux/device.h> #include ...
Linux kernel'inin 'arch/s390/kernel/perf_pai' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Performance event support - Processor Activity Instrumentation Facility * * Copyright IBM Corp. 2026 * Author(s): Thomas Richter <tmricht@linux.ibm.com> */ #define pr_fmt(fmt) "pai: " fmt #include <linux/kernel.h> #include <linux/kernel_stat.h> #include <linux/percp...