2 #include <linux/compiler.h> 7 char *endptr, *tok, *
name;
13 tok = strchr(ops->
raw,
',');
17 ops->
target.
addr = strtoull(tok + 1, &endptr, 16);
19 name = strchr(endptr,
'<');
29 tok = strchr(name,
'>');
60 char *s = strchr(ops->
raw,
','), *
target, *endptr;
69 if (ops->
source.raw == NULL)
81 s = strchr(endptr,
'<');
84 endptr = strchr(s + 1,
'>');
116 if (strchr(name,
'j') ||
117 !strncmp(name,
"bct", 3) ||
118 !strncmp(name,
"br", 2))
121 if (!strcmp(name,
"bras") ||
122 !strcmp(name,
"brasl") ||
123 !strcmp(name,
"basr"))
125 if (!strcmp(name,
"br"))
128 if (!strcmp(name,
"lrl") ||
129 !strcmp(name,
"lgrl") ||
130 !strcmp(name,
"lgfrl") ||
131 !strcmp(name,
"llgfrl") ||
132 !strcmp(name,
"strl") ||
133 !strcmp(name,
"stgrl"))
144 char model[16], model_c[16], cpumf_v[16], cpumf_a[16];
151 ret = sscanf(cpuid,
"%*[^,],%u,%[^,],%[^,],%[^,],%s", &family, model_c,
152 model, cpumf_v, cpumf_a);
u64(* map_ip)(struct map *, u64)
static struct ins_ops jump_ops
static int s390__cpuid_parse(struct arch *arch, char *cpuid)
static int s390__annotate_init(struct arch *arch, char *cpuid __maybe_unused)
static int mov__scnprintf(struct ins *ins, char *bf, size_t size, struct ins_operands *ops)
static int call__scnprintf(struct ins *ins, char *bf, size_t size, struct ins_operands *ops)
struct ins_ops *(* associate_instruction_ops)(struct arch *arch, const char *name)
struct ins_operands::@35 target
static struct ins_ops s390_call_ops
static int s390_mov__parse(struct arch *arch __maybe_unused, struct ins_operands *ops, struct map_symbol *ms __maybe_unused)
u64 map__objdump_2mem(struct map *map, u64 ip)
u64 map__rip_2objdump(struct map *map, u64 rip)
static struct ins_ops * s390__associate_ins_ops(struct arch *arch, const char *name)
static struct ins_ops s390_mov_ops
int(* parse)(struct arch *arch, struct ins_operands *ops, struct map_symbol *ms)
static struct ins_ops ret_ops
int map_groups__find_ams(struct addr_map_symbol *ams)
static int arch__associate_ins_ops(struct arch *arch, const char *name, struct ins_ops *ops)
struct ins_operands::@36::@38 source
static int s390_call__parse(struct arch *arch, struct ins_operands *ops, struct map_symbol *ms)