skel = test_uprobe__open_and_load(); if (!ASSERT_OK_PTR(skel, "skel_open")) return;
urand_pipe = urand_spawn(&urand_pid); if (!ASSERT_OK_PTR(urand_pipe, "urand_spawn")) goto cleanup;
skel->bss->my_pid = urand_pid;
/* Manual attach uprobe to urandlib_api * There are two `urandlib_api` symbols in .dynsym section: * - urandlib_api@LIBURANDOM_READ_1.0.0 * - urandlib_api@@LIBURANDOM_READ_2.0.0 * Both are global bind and would cause a conflict if user * specify the symbol name without a version suffix
*/
uprobe_opts.func_name = "urandlib_api";
skel->links.test4 = bpf_program__attach_uprobe_opts(skel->progs.test4,
urand_pid, "./liburandom_read.so",
0 /* offset */,
&uprobe_opts); if (!ASSERT_ERR_PTR(skel->links.test4, "urandlib_api_attach_conflict")) goto cleanup;
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.