From e585be145918c489a0c32e39b34756835facc268 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 26 Jul 2023 18:05:36 -0700 Subject: [PATCH] libsysprof: add self tracking of sysprof libs --- src/libsysprof/categories.txt | 10 ++++++++++ src/libsysprof/sysprof-elf.c | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/src/libsysprof/categories.txt b/src/libsysprof/categories.txt index 085e0b37..58cb3e64 100644 --- a/src/libsysprof/categories.txt +++ b/src/libsysprof/categories.txt @@ -224,6 +224,16 @@ rsvg: * icons inherit +Sysprof: +malloc memory inherit +calloc memory inherit +free memory inherit +realloc memory inherit +aligned_alloc memory inherit +posix_memalign memory inherit +memalign memory inherit + + Wayland Client: wl_* windowing inherit diff --git a/src/libsysprof/sysprof-elf.c b/src/libsysprof/sysprof-elf.c index 693ab32f..ece7dc08 100644 --- a/src/libsysprof/sysprof-elf.c +++ b/src/libsysprof/sysprof-elf.c @@ -53,6 +53,12 @@ static const struct { const char *library; const char *nick; } nick_table[] = { + /* Self Tracking Sysprof */ + { "libsysprof-memory-6.so", "Sysprof" }, + { "libsysprof-tracer-6.so", "Sysprof" }, + { "libsysprof-6.so", "Sysprof" }, + + /* Platform */ { "libc.so", "libc" }, { "libffi.so", "libffi" }, { "ld-linux-x86-64.so", "glibc" },