Home
last modified time | relevance | path

Searched refs:new_len (Results 1 – 12 of 12) sorted by relevance

/tools/perf/arch/arm64/util/
Dperf_regs.c89 int ret, new_len; in arch_sdt_arg_parse_op() local
98 new_len = 2; /* % NULL */ in arch_sdt_arg_parse_op()
99 new_len += (int)(rm[1].rm_eo - rm[1].rm_so); in arch_sdt_arg_parse_op()
101 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
105 scnprintf(*new_op, new_len, "%%%.*s", in arch_sdt_arg_parse_op()
109 new_len = 7; /* + ( % s p ) NULL */ in arch_sdt_arg_parse_op()
113 new_len += 1; in arch_sdt_arg_parse_op()
115 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op()
117 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
122 scnprintf(*new_op, new_len, "+0(%%sp)"); in arch_sdt_arg_parse_op()
[all …]
/tools/perf/arch/powerpc/util/
Dperf_regs.c134 int ret, new_len; in arch_sdt_arg_parse_op() local
151 new_len = 5; /* % g p r NULL */ in arch_sdt_arg_parse_op()
152 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op()
154 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
158 scnprintf(*new_op, new_len, "%%gpr%.*s", in arch_sdt_arg_parse_op()
167 new_len = 8; /* +/- ( % g p r ) NULL */ in arch_sdt_arg_parse_op()
168 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op()
169 new_len += (int)(rm[4].rm_eo - rm[4].rm_so); in arch_sdt_arg_parse_op()
171 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
175 scnprintf(*new_op, new_len, "%c%.*s(%%gpr%.*s)", prefix, in arch_sdt_arg_parse_op()
/tools/testing/selftests/bpf/
Dtesting_helpers.c9 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() local
44 new_len = end + 1; in parse_num_list()
45 tmp = realloc(set, new_len); in parse_num_list()
53 set_len = new_len; in parse_num_list()
/tools/objtool/
Dspecial.c24 unsigned char orig_len, new_len; /* group only */ member
37 .new_len = ALT_NEW_LEN_OFFSET,
83 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
84 entry->new_len); in get_alt_entry()
104 if (!entry->group || alt->new_len) { in get_alt_entry()
Dcheck.c1418 if (special_alt->new_len < special_alt->orig_len) { in handle_group_alt()
1436 nop->offset = special_alt->new_off + special_alt->new_len; in handle_group_alt()
1437 nop->len = special_alt->orig_len - special_alt->new_len; in handle_group_alt()
1444 if (!special_alt->new_len) { in handle_group_alt()
1453 if (insn->offset >= special_alt->new_off + special_alt->new_len) in handle_group_alt()
1486 if (dest_off == special_alt->new_off + special_alt->new_len) in handle_group_alt()
1591 if (!special_alt->group || special_alt->new_len) { in add_special_section_alts()
/tools/perf/arch/x86/util/
Dperf_regs.c197 int new_len = 0, ret; in arch_sdt_arg_parse_op() local
257 new_len = strlen(prefix) + in arch_sdt_arg_parse_op()
264 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
268 scnprintf(*new_op, new_len, "%.*s%.*s%.*s%.*s%.*s", in arch_sdt_arg_parse_op()
/tools/objtool/include/objtool/
Dspecial.h29 unsigned int orig_len, new_len; /* group only */ member
/tools/lib/perf/include/perf/
Devent.h130 __u16 new_len; member
/tools/perf/util/
Devent.c480 ret += fprintf(fp, " old len %u new len %u\n", tp->old_len, tp->new_len); in perf_event__fprintf_text_poke()
485 ret += binary__fprintf(tp->bytes + tp->old_len, tp->new_len, 16, in perf_event__fprintf_text_poke()
Dsession.c689 event->text_poke.new_len = bswap_16(event->text_poke.new_len); in perf_event__text_poke_swap()
693 sizeof(event->text_poke.new_len) + in perf_event__text_poke_swap()
695 event->text_poke.new_len; in perf_event__text_poke_swap()
Dmachine.c858 if (!event->text_poke.new_len) in machine__process_text_poke()
878 event->text_poke.new_len); in machine__process_text_poke()
879 if (ret != event->text_poke.new_len) in machine__process_text_poke()
Dintel-pt.c2938 u64 addr = event->text_poke.addr + event->text_poke.new_len - 1; in intel_pt_text_poke()
2940 int cnt = 4096 + event->text_poke.new_len; in intel_pt_text_poke()
2947 if (!event->text_poke.new_len) in intel_pt_text_poke()