snprintf(filename, PATH_MAX, "%s/%s", sys, name ?: "*");
switch (err) { case ENOENT: /* * We will get here if we can't find the tracepoint, but one of * debugfs or tracefs is configured, which means you probably * want some tracepoint which wasn't compiled in your kernel. * - jirka
*/ if (debugfs__configured() || tracefs__configured()) { /* sdt markers */ if (!strncmp(filename, "sdt_", 4)) {
snprintf(buf, size, "Error:\tFile %s/events/%s not found.\n" "Hint:\tSDT event cannot be directly recorded on.\n" "\tPlease first use 'perf probe %s:%s' before recording it.\n",
tracing_path, filename, sys, name);
} else {
snprintf(buf, size, "Error:\tFile %s/events/%s not found.\n" "Hint:\tPerhaps this kernel misses some CONFIG_ setting to enable this feature?.\n",
tracing_path, filename);
} break;
}
snprintf(buf, size, "%s", "Error:\tUnable to find debugfs/tracefs\n" "Hint:\tWas your kernel compiled with debugfs/tracefs support?\n" "Hint:\tIs the debugfs/tracefs filesystem mounted?\n" "Hint:\tTry 'sudo mount -t debugfs nodev /sys/kernel/debug'"); break; case EACCES: {
snprintf(buf, size, "Error:\tNo permissions to read %s/events/%s\n" "Hint:\tTry 'sudo mount -o remount,mode=755 %s'\n",
tracing_path, filename, tracing_path_mount());
} break; default:
snprintf(buf, size, "%s", str_error_r(err, sbuf, sizeof(sbuf))); break;
}
return 0;
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet)
¤
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.