This source file includes following definitions.
- regs_query_register_offset
- regs_query_register_name
1
2 #include <linux/ptrace.h>
3
4
5
6
7
8
9
10
11 int regs_query_register_offset(const char *name)
12 {
13 const struct pt_regs_offset *roff;
14 for (roff = regoffset_table; roff->name != NULL; roff++)
15 if (!strcmp(roff->name, name))
16 return roff->offset;
17 return -EINVAL;
18 }
19
20
21
22
23
24
25
26
27 const char *regs_query_register_name(unsigned int offset)
28 {
29 const struct pt_regs_offset *roff;
30 for (roff = regoffset_table; roff->name != NULL; roff++)
31 if (roff->offset == offset)
32 return roff->name;
33 return NULL;
34 }