data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
linux
// SPDX-License-Identifier: GPL-2.0 #ifndef pr_fmt #define pr_fmt(fmt) "alt: " fmt #endif #include <linux/hex.h> #include <linux/uaccess.h> #include <linux/printk.h> #include <asm/nospec-branch.h> #include <asm/abs_lowcore.h> #include <asm/alternative.h> #include <asm/facility.h> #include <asm/sections.h> #include <a...
arch/s390/kernel/alternative.c
null
null
null
null
null
source
linux
// 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> #incl...
arch/s390/kernel/asm-offsets.c
null
null
null
null
null
source
linux
// 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_class...
arch/s390/kernel/audit.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Extract CPU cache information and expose them via sysfs. * * Copyright IBM Corp. 2012 */ #include <linux/seq_file.h> #include <linux/cpu.h> #include <linux/cacheinfo.h> #include <asm/facility.h> enum { CACHE_SCOPE_NOTEXISTS, CACHE_SCOPE_PRIVATE, CACHE_SCOPE_SHARED, ...
arch/s390/kernel/cache.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * DIAG 0x320 support and certificate store handling * * Copyright IBM Corp. 2023 * Author(s): Anastasia Eskova <anastasia.eskova@ibm.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/delay.h> #include <linux/device.h> #include <linux/fs.h> #include <linux/...
arch/s390/kernel/cert_store.c
null
null
null
null
null
source
linux
// 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, \ s...
arch/s390/kernel/cpacf.c
null
null
null
null
null
source
linux
// 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> #include <l...
arch/s390/kernel/cpcmd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2022 */ #include <linux/cpufeature.h> #include <linux/export.h> #include <linux/bug.h> #include <asm/machine.h> #include <asm/elf.h> enum { TYPE_HWCAP, TYPE_FACILITY, TYPE_MACHINE, }; struct s390_cpu_feature { unsigned int type : 4; unsigned int num...
arch/s390/kernel/cpufeature.c
null
null
null
null
null
source
linux
// 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> #inc...
arch/s390/kernel/crash_dump.c
null
null
null
null
null
source
linux
// 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> /* * ct...
arch/s390/kernel/ctlreg.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * S/390 debug facility * * Copyright IBM Corp. 1999, 2020 * * Author(s): Michael Holzheu (holzheu@de.ibm.com), * Holger Smolinski (Holger.Smolinski@de.ibm.com) * * Bugreports to: <Linux390@de.ibm.com> */ #define pr_fmt(fmt) "s390dbf: " fmt #include <linux/s...
arch/s390/kernel/debug.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Disassemble s390 instructions. * * Copyright IBM Corp. 2007 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), */ #include <linux/sched.h> #include <linux/kernel.h> #include <linux/string.h> #include <linux/errno.h> #include <linux/ptrace.h> #include <linux/timer.h>...
arch/s390/kernel/dis.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Stack dumping functions * * Copyright IBM Corp. 1999, 2013 */ #include <linux/kallsyms.h> #include <linux/hardirq.h> #include <linux/kprobes.h> #include <linux/utsname.h> #include <linux/export.h> #include <linux/kdebug.h> #include <linux/ptrace.h> #include <linux/mm.h> #i...
arch/s390/kernel/dumpstack.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2007, 2009 * Author(s): Hongjie Yang <hongjie@us.ibm.com>, */ #define pr_fmt(fmt) "setup: " fmt #include <linux/sched/debug.h> #include <linux/cpufeature.h> #include <linux/compiler.h> #include <linux/init.h> #include <linux/errno.h> #include <linu...
arch/s390/kernel/early.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2017 */ #include <linux/console.h> #include <linux/kernel.h> #include <linux/init.h> #include <asm/setup.h> #include <asm/sclp.h> static void sclp_early_write(struct console *con, const char *s, unsigned int len) { __sclp_early_printk(s, len); } stat...
arch/s390/kernel/early_printk.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * EBCDIC -> ASCII, ASCII -> EBCDIC, * upper to lower case (EBCDIC) conversion tables. * * S390 version * Copyright IBM Corp. 1999 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> * Martin Peschke <peschke@fh-brandenburg.de> */ #include <...
arch/s390/kernel/ebcdic.c
null
null
null
null
null
source
linux
/* 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/export.h> #incl...
arch/s390/kernel/entry.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ENTRY_H #define _ENTRY_H #include <linux/percpu.h> #include <linux/types.h> #include <linux/signal.h> #include <asm/extable.h> #include <asm/ptrace.h> #include <asm/idle.h> extern void *restart_stack; void system_call(void); void pgm_check_handler(void); void ext_int_h...
arch/s390/kernel/entry.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2023 */ #include <linux/export.h> #include <asm/facility.h> unsigned int stfle_size(void) { static unsigned int size; unsigned int r; u64 dummy; r = READ_ONCE(size); if (!r) { r = __stfle_asm(&dummy, 1) + 1; WRITE_ONCE(size, r); } return r; } ...
arch/s390/kernel/facility.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * In-kernel vector facility support functions * * Copyright IBM Corp. 2015 * Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com> */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/cpu.h> #include <linux/sched.h> #include <asm/fpu.h> void __kernel...
arch/s390/kernel/fpu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Dynamic function tracer architecture backend. * * Copyright IBM Corp. 2009,2014 * * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/hardirq.h> #include <linux/uaccess.h> #include <linux/ftrace.h> #include <linux/kernel.h> #include <linux/types....
arch/s390/kernel/ftrace.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _FTRACE_H #define _FTRACE_H #include <asm/types.h> struct ftrace_hotpatch_trampoline { u16 brasl_opc; s32 brasl_disp; s16: 16; u64 rest_of_intercepted_function; u64 interceptor; } __packed; extern struct ftrace_hotpatch_trampoline __ftrace_hotpatch_trampolines_star...
arch/s390/kernel/ftrace.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2016 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/cpufeature.h> #include <linux/kernel.h> #include <linux/syscalls.h> #include <linux/signal.h> #include <linux/mm.h> #include <linux/slab.h> #include <asm/guarded_storage.h> #...
arch/s390/kernel/guarded_storage.c
null
null
null
null
null
source
linux
/* 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> * */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/lowcore.h> #include <asm/asm-offsets...
arch/s390/kernel/head.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2024 */ #define pr_fmt(fmt) "hd: " fmt /* * Hiperdispatch: * Dynamically calculates the optimum number of high capacity COREs * by considering the state the system is in. When hiperdispatch decides * that a capacity update is necessary, it schedules a...
arch/s390/kernel/hiperdispatch.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Idle functions for s390. * * Copyright IBM Corp. 2014 * * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/kernel.h> #include <linux/kernel_stat.h> #include <linux/notifier.h> #include <linux/init.h> #include <linux/cpu.h> #include <trace/events/p...
arch/s390/kernel/idle.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/ima.h> #include <asm/boot_data.h> bool arch_ima_get_secureboot(void) { return ipl_secure_flag; } const char * const *arch_get_ima_policy(void) { return NULL; }
arch/s390/kernel/ima_arch.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * ipl/reipl/dump support for Linux on s390. * * Copyright IBM Corp. 2005, 2012 * Author(s): Michael Holzheu <holzheu@de.ibm.com> * Volker Sameske <sameske@de.ibm.com> */ #include <linux/types.h> #include <linux/export.h> #include <linux/init.h> #include <linux/de...
arch/s390/kernel/ipl.c
null
null
null
null
null
source
linux
// 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; len =...
arch/s390/kernel/ipl_vmparm.c
null
null
null
null
null
source
linux
// 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_stat.h...
arch/s390/kernel/irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Jump label s390 support * * Copyright IBM Corp. 2011 * Author(s): Jan Glauber <jang@linux.vnet.ibm.com> */ #include <linux/uaccess.h> #include <linux/jump_label.h> #include <linux/module.h> #include <asm/text-patching.h> #include <asm/ipl.h> struct insn { u16 opcode; s32...
arch/s390/kernel/jump_label.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/debugfs.h> #include <linux/export.h> #include <linux/init.h> struct dentry *arch_debugfs_dir; EXPORT_SYMBOL(arch_debugfs_dir); static int __init arch_kdebugfs_init(void) { arch_debugfs_dir = debugfs_create_dir("s390", NULL); return 0; } postcore_initcall(arch_kdeb...
arch/s390/kernel/kdebugfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * ELF 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 kexec_fil...
arch/s390/kernel/kexec_elf.c
null
null
null
null
null
source
linux
// 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 kexec_f...
arch/s390/kernel/kexec_image.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * Kernel Probes (KProbes) * * Copyright IBM Corp. 2002, 2006 * * s390 port, used ppc64 as template. Mike Grundy <grundym@us.ibm.com> */ #define pr_fmt(fmt) "kprobes: " fmt #include <linux/kprobes.h> #include <linux/ptrace.h> #include <linux/preempt.h> #include <linux/sto...
arch/s390/kernel/kprobes.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Linux Guest Relocation (LGR) detection * * Copyright IBM Corp. 2012 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/init.h> #include <linux/export.h> #include <linux/timer.h> #include <linux/slab.h> #include <asm/facility.h> #include <asm/sysin...
arch/s390/kernel/lgr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2005, 2011 * * Author(s): Rolf Adelsberger, * Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/device.h> #include <linux/mm.h> #include <linux/kexec.h> #include <linux/delay.h> #include <linux/reboot.h> #include <linux/ftrace.h> #in...
arch/s390/kernel/machine_kexec.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * s390 code for kexec_file_load system call * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "kexec: " fmt #include <linux/elf.h> #include <linux/errno.h> #include <linux/kexec.h> #include <linux/module_signature.h>...
arch/s390/kernel/machine_kexec_file.c
null
null
null
null
null
source
linux
// 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 12 b...
arch/s390/kernel/machine_kexec_reloc.c
null
null
null
null
null
source
linux
/* 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) #define STA...
arch/s390/kernel/mcount.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * Kernel module help for s390. * * S390 version * Copyright IBM Corp. 2002, 2003 * Author(s): Arnd Bergmann (arndb@de.ibm.com) * Martin Schwidefsky (schwidefsky@de.ibm.com) * * based on i386 version * Copyright (C) 2001 Rusty Russell. */ #include <linux/mo...
arch/s390/kernel/module.c
null
null
null
null
null
source
linux
// 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> #inc...
arch/s390/kernel/nmi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> #include <linux/device.h> #include <linux/cpu.h> #include <asm/nospec-branch.h> int nobp = IS_ENABLED(CONFIG_KERNEL_NOBP); static int __init nobp_setup_early(char *str) { bool enabled; int rc; rc = kstrtobool(str, &enabled); if (rc) return rc; if (...
arch/s390/kernel/nospec-branch.c
null
null
null
null
null
source
linux
// 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"); } ssize...
arch/s390/kernel/nospec-sysfs.c
null
null
null
null
null
source
linux
// 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) { in...
arch/s390/kernel/numa.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * OS info memory interface * * Copyright IBM Corp. 2012 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "os_info: " fmt #include <linux/crash_dump.h> #include <linux/kernel.h> #include <linux/slab.h> #include <asm/checksum.h> #include <asm/a...
arch/s390/kernel/os_info.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Performance event support for s390x - CPU-measurement Counter Facility * * Copyright IBM Corp. 2012, 2023 * Author(s): Hendrik Brueckner <brueckner@linux.ibm.com> * Thomas Richter <tmricht@linux.ibm.com> */ #define pr_fmt(fmt) "cpum_cf: " fmt #include <linux/kern...
arch/s390/kernel/perf_cpum_cf.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Perf PMU sysfs events attributes for available CPU-measurement counters * */ #include <linux/slab.h> #include <linux/perf_event.h> #include <asm/cpu_mf.h> /* BEGIN: CPUM_CF COUNTER DEFINITIONS =================================== */ CPUMF_EVENT_ATTR(cf_fvn1, CPU_CYCLES, 0x...
arch/s390/kernel/perf_cpum_cf_events.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Performance event support for the System z CPU-measurement Sampling Facility * * Copyright IBM Corp. 2013, 2018 * Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "cpum_sf: " fmt #include <linux/kernel.h> #include <linux/kernel_stat.h> #in...
arch/s390/kernel/perf_cpum_sf.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Performance event support for s390x * * Copyright IBM Corp. 2012, 2013 * Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "perf: " fmt #include <linux/kernel.h> #include <linux/perf_event.h> #include <linux/kvm_host.h> #include <linux/pe...
arch/s390/kernel/perf_event.c
null
null
null
null
null
source
linux
// 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/percpu.h> ...
arch/s390/kernel/perf_pai.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/perf_event.h> #include <linux/perf_regs.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/bug.h> #include <asm/ptrace.h> #include <asm/fpu.h> u64 perf_reg_value(struct pt_regs *regs, int idx) { freg_t fp; if (idx >= PERF_REG_S390_R0 && idx <= P...
arch/s390/kernel/perf_regs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * This file handles the architecture dependent parts of process handling. * * Copyright IBM Corp. 1999, 2009 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, * Hartmut Penner <hp@de.ibm.com>, * Denis Joseph Barrow, */ #include <linux/elf-randomize.h> #in...
arch/s390/kernel/process.c
null
null
null
null
null
source
linux
// 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...
arch/s390/kernel/processor.c
null
null
null
null
null
source
linux
// 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 <linux/cp...
arch/s390/kernel/ptrace.c
null
null
null
null
null
source
linux
/* 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> GEN_BR_THUNK...
arch/s390/kernel/reipl.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2005 * * Author(s): Rolf Adelsberger * */ #include <linux/linkage.h> #include <asm/page.h> #include <asm/sigp.h> /* * moves the new kernel to its destination... * %r2 = pointer to first kimage_entry_t * %r3 = start address - where to jump to afte...
arch/s390/kernel/relocate_kernel.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/rethook.h> #include <linux/kprobes.h> #include "rethook.h" void arch_rethook_prepare(struct rethook_node *rh, struct pt_regs *regs, bool mcount) { rh->ret_addr = regs->gprs[14]; rh->frame = regs->gprs[15]; /* Replace the return addr with trampoline addr ...
arch/s390/kernel/rethook.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __S390_RETHOOK_H #define __S390_RETHOOK_H unsigned long arch_rethook_trampoline_callback(struct pt_regs *regs); #endif
arch/s390/kernel/rethook.h
null
null
null
null
null
source
linux
// 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/kerne...
arch/s390/kernel/runtime_instr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999, 2012 * Author(s): Hartmut Penner (hp@de.ibm.com), * Martin Schwidefsky (schwidefsky@de.ibm.com) * * Derived from "arch/i386/kernel/setup.c" * Copyright (C) 1995, Linus Torvalds */ /* * This file handles ...
arch/s390/kernel/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 1999, 2006 * Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) * * Based on Intel version * * Copyright (C) 1991, 1992 Linus Torvalds * * 1997-11-28 Modified for POSIX.1b signals by Richard Henderson */ #include ...
arch/s390/kernel/signal.c
null
null
null
null
null
source
linux
// 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" (ad...
arch/s390/kernel/skey.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * SMP related functions * * Copyright IBM Corp. 1999, 2012 * Author(s): Denis Joseph Barrow, * Martin Schwidefsky <schwidefsky@de.ibm.com>, * * based on other smp stuff by * (c) 1995 Alan Cox, CymruNET Ltd <alan@cymru.net> * (c) 1998 Ingo Molnar * * The...
arch/s390/kernel/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #ifndef pr_fmt #define pr_fmt(fmt) "stackprot: " fmt #endif #include <linux/export.h> #include <linux/hex.h> #include <linux/uaccess.h> #include <linux/printk.h> #include <asm/abs_lowcore.h> #include <asm/sections.h> #include <asm/machine.h> #include <asm/asm-offsets.h> #include <a...
arch/s390/kernel/stackprotector.c
null
null
null
null
null
source
linux
// 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 <asm/p...
arch/s390/kernel/stacktrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * store hypervisor information instruction emulation functions. * * Copyright IBM Corp. 2016 * Author(s): Janosch Frank <frankja@linux.vnet.ibm.com> */ #include <linux/export.h> #include <linux/errno.h> #include <linux/pagemap.h> #include <linux/vmalloc.h> #include <linux/sy...
arch/s390/kernel/sthyi.c
null
null
null
null
null
source
linux
// 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 * ...
arch/s390/kernel/syscall.c
null
null
null
null
null
source
linux
// 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/proc_f...
arch/s390/kernel/sysinfo.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Code that needs to run below 2 GB. * * Copyright IBM Corp. 2019 */ #include <linux/linkage.h> #include <asm/asm-extable.h> #include <asm/errno.h> #include <asm/sigp.h> .section .amode31.text,"ax" /* * Simplified version of expoline thunk. The normal thunks can not be ...
arch/s390/kernel/text_amode31.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Time of day based timer functions. * * S390 version * Copyright IBM Corp. 1999, 2008 * Author(s): Hartmut Penner (hp@de.ibm.com), * Martin Schwidefsky (schwidefsky@de.ibm.com), * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yaho...
arch/s390/kernel/time.c
null
null
null
null
null
source
linux
// 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 <linu...
arch/s390/kernel/topology.c
null
null
null
null
null
source
linux
// 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(unsig...
arch/s390/kernel/trace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999, 2000 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com), * * Derived from "arch/i386/kernel/traps.c" * Copyright (C) 1991, 1992 Linus Torvalds */ ...
arch/s390/kernel/traps.c
null
null
null
null
null
source
linux
/* 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> unsigne...
arch/s390/kernel/unwind_bc.c
null
null
null
null
null
source
linux
// 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> #in...
arch/s390/kernel/uprobes.c
null
null
null
null
null
source
linux
// 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/membloc...
arch/s390/kernel/uv.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * vdso setup for s390 * * Copyright IBM Corp. 2008 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <linux/binfmts.h> #include <linux/elf.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <l...
arch/s390/kernel/vdso.c
null
null
null
null
null
source
linux
// 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); VMCOREINFO_LE...
arch/s390/kernel/vmcore_info.c
null
null
null
null
null
source
linux
/* 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 has 16k alignm...
arch/s390/kernel/vmlinux.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Virtual cpu timer based timer functions. * * Copyright IBM Corp. 2004, 2012 * Author(s): Jan Glauber <jan.glauber@de.ibm.com> */ #include <linux/kernel_stat.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/timex.h> #include <linux/types.h> #i...
arch/s390/kernel/vtime.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Support for warning track interruption * * Copyright IBM Corp. 2023 */ #include <linux/cpu.h> #include <linux/debugfs.h> #include <linux/kallsyms.h> #include <linux/smpboot.h> #include <linux/irq.h> #include <uapi/linux/sched/types.h> #include <asm/debug.h> #include <asm/di...
arch/s390/kernel/wti.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Implementation of s390 diagnose codes * * Copyright IBM Corp. 2007 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #include <linux/export.h> #include <linux/init.h> #include <linux/cpu.h> #include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/vmalloc.h...
arch/s390/kernel/diag/diag.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Request memory topology information via diag0x310. * * Copyright IBM Corp. 2025 */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/uaccess.h> #include <linux/vmalloc.h> #include <asm/diag.h> #include <asm/sclp.h> #include <uapi/asm/diag.h> #include "diag_...
arch/s390/kernel/diag/diag310.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Request power readings for resources in a computing environment via * diag 0x324. diag 0x324 stores the power readings in the power information * block (pib). * * Copyright IBM Corp. 2024 */ #define pr_fmt(fmt) "diag324: " fmt #include <linux/fs.h> #include <linux/gfp.h> ...
arch/s390/kernel/diag/diag324.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _DIAG_IOCTL_H #define _DIAG_IOCTL_H #include <linux/types.h> long diag324_pibbuf(unsigned long arg); long diag324_piblen(unsigned long arg); long diag310_memtop_stride(unsigned long arg); long diag310_memtop_len(unsigned long arg); long diag310_memtop_buf(unsigned long ...
arch/s390/kernel/diag/diag_ioctl.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Provide diagnose information via misc device /dev/diag. * * Copyright IBM Corp. 2024 */ #include <linux/fs.h> #include <linux/init.h> #include <linux/ioctl.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/types.h> #include <uapi/asm/diag.h> #inclu...
arch/s390/kernel/diag/diag_misc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* Copyright IBM Corp. 2020 */ #include <linux/compiler.h> #include <asm/timex.h> #include "vdso.h" int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, void *unused) { union tod_clock clk; /* CPU number is stored in the programmable field of the TOD clock */ store_tod_clock_e...
arch/s390/kernel/vdso/getcpu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. * Here we can supply some information useful to userland. */ #include <linux/uts.h> #include <linux/version.h> #include <linux/elfnote.h> ELFNOTE_START(Linux, 0, "a") .long LINUX_VERSION_CODE EL...
arch/s390/kernel/vdso/note.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ARCH_S390_KERNEL_VDSO_VDSO_H #define __ARCH_S390_KERNEL_VDSO_VDSO_H #include <vdso/datapage.h> int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, void *unused); int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); int __s390_vdso_clock...
arch/s390/kernel/vdso/vdso.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * This is the infamous ld script for the 64 bits vdso * library */ #include <asm/vdso/vsyscall.h> #include <asm/page.h> #include <asm/vdso.h> #include <asm-generic/vmlinux.lds.h> #include <vdso/datapage.h> OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390") OUTPUT_ARCH...
arch/s390/kernel/vdso/vdso.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include "../../../../lib/vdso/gettimeofday.c" #include "vdso.h" int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) { return __cvdso_gettimeofday(tv, tz); } int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) { retu...
arch/s390/kernel/vdso/vdso_generic.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/vdso.h> #include <asm/unistd.h> #include <asm/asm-offsets.h> #include <asm/dwarf.h> #include <asm/ptrace.h> /* * Older glibc version called vdso without allocating a stackframe. This wrapper * is just used to allocate a stackframe. See ...
arch/s390/kernel/vdso/vdso_user_wrapper.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/page.h> __PAGE_ALIGNED_DATA .globl vdso_start, vdso_end .balign PAGE_SIZE vdso_start: .incbin "arch/s390/kernel/vdso/vdso.so" .balign PAGE_SIZE vdso_end: .previous
arch/s390/kernel/vdso/vdso_wrapper.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/stringify.h> #include <linux/linkage.h> #include <asm/alternative.h> #include <asm/dwarf.h> #include <asm/fpu-insn.h> #define STATE0 %v0 #define STATE1 %v1 #define STATE2 %v2 #define STATE3 %v3 #define COPY0 %v4 #define COPY1 %v5 #define COPY2 %v6 #define COPY3 %...
arch/s390/kernel/vdso/vgetrandom-chacha.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <asm/facility.h> #include <uapi/asm-generic/errno.h> #include "vdso.h" ssize_t __kernel_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len) { if (test_facility(129)) return __cvdso_getrandom(buffer, len, flags, opaque_state, op...
arch/s390/kernel/vdso/vgetrandom.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * KVM guest address space mapping code * * Copyright IBM Corp. 2007, 2020, 2024 * Author(s): Claudio Imbrenda <imbrenda@linux.ibm.com> * Martin Schwidefsky <schwidefsky@de.ibm.com> * David Hildenbrand <david@redhat.com> * Janosch Frank <frankja@linux.ibm.com> ...
arch/s390/kvm/dat.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * KVM guest address space mapping code * * Copyright IBM Corp. 2024, 2025 * Author(s): Claudio Imbrenda <imbrenda@linux.ibm.com> */ #ifndef __KVM_S390_DAT_H #define __KVM_S390_DAT_H #include <linux/radix-tree.h> #include <linux/refcount.h> #include <linux/io.h> #i...
arch/s390/kvm/dat.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * handling diagnose instructions * * Copyright IBM Corp. 2008, 2020 * * Author(s): Carsten Otte <cotte@de.ibm.com> * Christian Borntraeger <borntraeger@de.ibm.com> */ #include <linux/kvm.h> #include <linux/kvm_host.h> #include <asm/gmap_helpers.h> #include...
arch/s390/kvm/diag.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * KVM guest fault handling. * * Copyright IBM Corp. 2025 * Author(s): Claudio Imbrenda <imbrenda@linux.ibm.com> */ #include <linux/kvm_types.h> #include <linux/kvm_host.h> #include "gmap.h" #include "trace.h" #include "faultin.h" bool kvm_arch_setup_async_pf(struct k...
arch/s390/kvm/faultin.c
null
null
null
null
null