Merge "Only run uprobestatsbpfload if available" into main

This commit is contained in:
Maciej Żenczykowski 2024-12-11 10:29:07 -08:00 • committed by Gerrit Code Review
commit 0cee68d863

View file

@ -1659,17 +1659,17 @@ static int doLoad(char** argv, char * const envp[]) {
}
// unreachable before U QPR3
{
if (exists(uprobestatsBpfLoader)) {
ALOGI("done, transferring control to uprobestatsbpfload.");
const char *args[] = {
uprobestatsBpfLoader,
NULL,
};
execve(args[0], (char **)args, envp);
ALOGI("unable to execute uprobestatsbpfload, transferring control to "
"platform bpfloader.");
}
ALOGI("unable to execute uprobestatsbpfload, transferring control to "
"platform bpfloader.");
// platform BpfLoader *needs* to run as root
const char * args[] = { platformBpfLoader, NULL, };
execve(args[0], (char**)args, envp);