MCPcopy Create free account
hub / github.com/F-Stack/f-stack / elf64_dump_thread

Function elf64_dump_thread

freebsd/amd64/amd64/elf_machdep.c:229–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 (sysinit_cfunc_t)elf64_insert_brand_entry, &kfreebsd_brand_info);
228
229void
230elf64_dump_thread(struct thread *td, void *dst, size_t *off)
231{
232 void *buf;
233 size_t len;
234
235 len = 0;
236 if (use_xsave) {
237 if (dst != NULL) {
238 fpugetregs(td);
239 len += elf64_populate_note(NT_X86_XSTATE,
240 get_pcb_user_save_td(td), dst,
241 cpu_max_ext_state_size, &buf);
242 *(uint64_t *)((char *)buf + X86_XSTATE_XCR0_OFFSET) =
243 xsave_mask;
244 } else
245 len += elf64_populate_note(NT_X86_XSTATE, NULL, NULL,
246 cpu_max_ext_state_size, NULL);
247 }
248 *off = len;
249}
250
251bool
252elf_is_ifunc_reloc(Elf_Size r_info)

Callers

nothing calls this directly

Calls 2

fpugetregsFunction · 0.85
get_pcb_user_save_tdFunction · 0.70

Tested by

no test coverage detected