From 355308f7d18c10f2c2c54b643919554738e1ed93 Mon Sep 17 00:00:00 2001 From: officeyutong Date: Wed, 15 May 2024 02:16:22 +0800 Subject: [PATCH] Update --- example/libbpf-tools/bashreadline/readline.bpf.c | 2 +- runtime/src/bpftime_shm_internal.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/example/libbpf-tools/bashreadline/readline.bpf.c b/example/libbpf-tools/bashreadline/readline.bpf.c index 499922ce..d098dfc2 100644 --- a/example/libbpf-tools/bashreadline/readline.bpf.c +++ b/example/libbpf-tools/bashreadline/readline.bpf.c @@ -36,4 +36,4 @@ int BPF_KRETPROBE(printret, const void *ret) return 0; }; -char LICENSE[] SEC("license") = "GPL"; \ No newline at end of file +char LICENSE[] SEC("license") = "GPL"; diff --git a/runtime/src/bpftime_shm_internal.cpp b/runtime/src/bpftime_shm_internal.cpp index dee932a5..39084e9d 100644 --- a/runtime/src/bpftime_shm_internal.cpp +++ b/runtime/src/bpftime_shm_internal.cpp @@ -37,7 +37,8 @@ extern "C" void bpftime_destroy_global_shm() shm_holder.global_shared_memory.~bpftime_shm(); // Why not spdlog? because global variables that spdlog used // were already destroyed.. - printf("INFO [%d]: Global shm destructed\n", (int)getpid()); + fprintf(stderr, "INFO [%d]: Global shm destructed\n", + (int)getpid()); } }