cregit-Linux how code gets into the kernel

Release 4.14 tools/perf/arch/s390/annotate/instructions.c

// SPDX-License-Identifier: GPL-2.0

static struct ins_ops *s390__associate_ins_ops(struct arch *arch, const char *name) { struct ins_ops *ops = NULL; /* catch all kind of jumps */ if (strchr(name, 'j') || !strncmp(name, "bct", 3) || !strncmp(name, "br", 2)) ops = &jump_ops; /* override call/returns */ if (!strcmp(name, "bras") || !strcmp(name, "brasl") || !strcmp(name, "basr")) ops = &call_ops; if (!strcmp(name, "br")) ops = &ret_ops; arch__associate_ins_ops(arch, name, ops); return ops; }

Contributors

PersonTokensPropCommitsCommitProp
Christian Bornträger119100.00%1100.00%
Total119100.00%1100.00%


static int s390__annotate_init(struct arch *arch) { if (!arch->initialized) { arch->initialized = true; arch->associate_instruction_ops = s390__associate_ins_ops; } return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Christian Bornträger35100.00%1100.00%
Total35100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Christian Bornträger15499.35%150.00%
Greg Kroah-Hartman10.65%150.00%
Total155100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.