buf = malloc(sizeof(u64) * PERF_REGS_MAX); if (!buf) {
pr_debug("failed to allocate sample uregs data\n"); return -1;
}
#ifdef MEMORY_SANITIZER /* * Assignments to buf in the assembly function perf_regs_load aren't * seen by memory sanitizer. Zero the memory to convince memory * sanitizer the memory is initialized.
*/
memset(buf, 0, sizeof(u64) * PERF_REGS_MAX); #endif
perf_regs_load(buf);
regs->abi = PERF_SAMPLE_REGS_ABI;
regs->regs = buf;
regs->mask = PERF_REGS_MASK;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.