Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 24 of 24) sorted by relevance

/tools/objtool/
Delf.c38 struct section *sec; in find_section_by_name() local
40 list_for_each_entry(sec, &elf->sections, list) in find_section_by_name()
41 if (!strcmp(sec->name, name)) in find_section_by_name()
42 return sec; in find_section_by_name()
50 struct section *sec; in find_section_by_index() local
52 list_for_each_entry(sec, &elf->sections, list) in find_section_by_index()
53 if (sec->idx == idx) in find_section_by_index()
54 return sec; in find_section_by_index()
61 struct section *sec; in find_symbol_by_index() local
64 list_for_each_entry(sec, &elf->sections, list) in find_symbol_by_index()
[all …]
Dspecial.c47 const char *sec; member
56 .sec = ".altinstructions",
66 .sec = "__jump_table",
73 .sec = "__ex_table",
82 struct section *sec, int idx, in get_alt_entry() argument
94 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
96 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
103 feature = *(unsigned short *)(sec->data->d_buf + offset + in get_alt_entry()
115 orig_rela = find_rela_by_dest(sec, offset + entry->orig); in get_alt_entry()
117 WARN_FUNC("can't find orig rela", sec, offset + entry->orig); in get_alt_entry()
[all …]
Dcheck.c42 struct section *sec, unsigned long offset) in find_insn() argument
47 if (insn->sec == sec && insn->offset == offset) in find_insn()
58 if (!next || &next->list == &file->insn_list || next->sec != insn->sec) in next_insn_same_sec()
81 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func()
85 for (insn = find_insn(file, func->sec, func->offset); \
90 for (insn = find_insn(file, func->sec, func->offset); \
92 insn->sec == func->sec && \
99 insn->sec == func->sec && insn->offset >= func->offset; \
122 rela->sym->sec == func->sec && in ignore_func()
183 insn = find_insn(file, func->sec, func->offset); in __dead_end_function()
[all …]
Dorc_gen.c66 insn->sec, insn->offset, cfa->base); in create_orc()
82 insn->sec, insn->offset, bp->base); in create_orc()
132 struct section *sec, *u_sec, *ip_relasec; in create_orc_sections() local
141 sec = find_section_by_name(file->elf, ".orc_unwind"); in create_orc_sections()
142 if (sec) { in create_orc_sections()
149 for_each_sec(file, sec) { in create_orc_sections()
150 if (!sec->text) in create_orc_sections()
154 sec_for_each_insn(file, sec, insn) { in create_orc_sections()
172 sec = elf_create_section(file->elf, ".orc_unwind_ip", sizeof(int), idx); in create_orc_sections()
173 if (!sec) in create_orc_sections()
[all …]
Delf.h58 struct section *sec; member
90 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
92 struct symbol *find_symbol_containing(struct section *sec, unsigned long offset);
93 struct rela *find_rela_by_dest(struct section *sec, unsigned long offset);
94 struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset,
96 struct symbol *find_containing_func(struct section *sec, unsigned long offset);
100 int elf_rebuild_rela_section(struct section *sec);
104 #define for_each_sec(file, sec) \ argument
105 list_for_each_entry(sec, &file->elf->sections, list)
Dwarn.h30 static inline char *offstr(struct section *sec, unsigned long offset) in offstr() argument
36 func = find_containing_func(sec, offset); in offstr()
41 name = sec->name; in offstr()
60 #define WARN_FUNC(format, sec, offset, ...) \ argument
62 char *_str = offstr(sec, offset); \
Dcheck.h42 struct section *sec; member
70 struct section *sec, unsigned long offset);
75 #define sec_for_each_insn(file, sec, insn) \ argument
76 for (insn = find_insn(file, sec, 0); \
78 insn->sec == sec; \
Darch.h75 int arch_decode_instruction(struct elf *elf, struct section *sec,
/tools/perf/scripts/python/
Dnetdev-times.py228 def irq__softirq_entry(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
231 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
234 def irq__softirq_exit(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
237 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
240 def irq__softirq_raise(name, context, cpu, sec, nsec, pid, comm, callchain, vec): argument
243 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, vec)
246 def irq__irq_handler_entry(name, context, cpu, sec, nsec, pid, comm, argument
248 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
252 def irq__irq_handler_exit(name, context, cpu, sec, nsec, pid, comm, callchain, irq, ret): argument
253 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, irq, ret)
[all …]
Dnet_dropmonitor.py70 def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, argument
Dcompaction-times.py48 def ns(sec, nsec): argument
49 return (sec * 1000000000) + nsec
/tools/perf/Documentation/
Dperf-bench.txt33 Total time:5.855 sec
35 170792 ops/sec
96 Total time:0.308 sec
102 Total time:0.582 sec
122 Total time:8.091 sec
124 123581 ops/sec
129 Total time:0.016 sec
131 59004 ops/sec
Dperf-stat.txt264 678 context switches # 0.000 M/sec
265 133 CPU migrations # 0.000 M/sec
266 235724 pagefaults # 0.029 M/sec
267 24821162526 CPU cycles # 3057.784 M/sec
268 18687303457 instructions # 2302.138 M/sec
269 172158895 cache references # 21.209 M/sec
270 27075259 cache misses # 3.335 M/sec
Dperf-sched.txt112 run times (in sec) and relative stddev.
117 max, and average run times (in sec) and relative stddev.
/tools/testing/selftests/ptp/
Dtestptp.c110 return t->sec * 1000000000LL + t->nsec; in pctns()
370 event.t.sec, event.t.nsec); in main()
448 perout_request.start.sec = ts.tv_sec + 2; in main()
450 perout_request.period.sec = 0; in main()
508 (pct+2*i)->sec, (pct+2*i)->nsec); in main()
510 (pct+2*i+1)->sec, (pct+2*i+1)->nsec); in main()
512 (pct+2*i+2)->sec, (pct+2*i+2)->nsec); in main()
/tools/perf/util/
Dsymbol-elf.c175 Elf_Scn *sec = NULL; in elf_addr_to_index() local
179 while ((sec = elf_nextscn(elf, sec)) != NULL) { in elf_addr_to_index()
180 gelf_getshdr(sec, &shdr); in elf_addr_to_index()
195 Elf_Scn *sec = NULL; in elf_section_by_name() local
202 while ((sec = elf_nextscn(elf, sec)) != NULL) { in elf_section_by_name()
205 gelf_getshdr(sec, shp); in elf_section_by_name()
210 return sec; in elf_section_by_name()
445 Elf_Scn *sec; in elf_read_build_id() local
468 sec = elf_section_by_name(elf, &ehdr, &shdr, in elf_read_build_id()
470 if (sec) in elf_read_build_id()
[all …]
Dtime-utils.c124 u64 sec = timestamp / NSEC_PER_SEC; in timestamp__scnprintf_usec() local
127 return scnprintf(buf, sz, "%"PRIu64".%06"PRIu64, sec, usec); in timestamp__scnprintf_usec()
Dprobe-event.c286 Elf_Scn *sec; in find_module_name() local
301 sec = elf_section_by_name(elf, &ehdr, &shdr, in find_module_name()
303 if (!sec) in find_module_name()
306 data = elf_getdata(sec, NULL); in find_module_name()
Dheader.c2487 struct perf_file_section *feat_sec, *sec; in perf_header__process_sections() local
2497 feat_sec = sec = calloc(nr_sections, sizeof(*feat_sec)); in perf_header__process_sections()
2510 err = process(sec++, header, feat, fd, data); in perf_header__process_sections()
/tools/testing/selftests/bpf/
Dtest_xdp_redirect.sh53 ip link set dev veth1 xdpgeneric obj test_xdp_redirect.o sec redirect_to_222
54 ip link set dev veth2 xdpgeneric obj test_xdp_redirect.o sec redirect_to_111
/tools/testing/selftests/timers/
Dvalid-adjtimex.c231 int set_bad_offset(long sec, long usec, int use_nano) in set_bad_offset() argument
240 tmx.time.tv_sec = sec; in set_bad_offset()
/tools/objtool/arch/x86/
Ddecode.c81 int arch_decode_instruction(struct elf *elf, struct section *sec, in arch_decode_instruction() argument
96 insn_init(&insn, sec->data->d_buf + offset, maxlen, x86_64); in arch_decode_instruction()
100 WARN_FUNC("can't decode instruction", sec, offset); in arch_decode_instruction()
/tools/lib/bpf/
Dlibbpf.c763 int sec = sh.sh_info; /* points to other section */ in bpf_object__elf_collect() local
766 if (!section_have_execinstr(obj, sec)) { in bpf_object__elf_collect()
768 name, idx, sec); in bpf_object__elf_collect()
/tools/power/pm-graph/
Danalyze_suspend.py3813 ….thread.sec,.thread.sec:hover {background:black;border:0;color:white;line-height:15px;font-size:10…