return NULL;
}
+#define DSO__DELETED "(deleted)"
+
struct symbol *
map__find_symbol(struct map *self, u64 ip, symbol_filter_t filter)
{
self->dso->long_name);
return NULL;
} else if (nr == 0) {
- pr_warning("No symbols found in %s, maybe install a debug package?\n",
- self->dso->long_name);
+ const char *name = self->dso->long_name;
+ const size_t len = strlen(name);
+ const size_t real_len = len - sizeof(DSO__DELETED);
+
+ if (len > sizeof(DSO__DELETED) &&
+ strcmp(name + real_len + 1, DSO__DELETED) == 0)
+ pr_warning("%.*s was updated, restart the "
+ "long running apps that use it!\n",
+ real_len, name);
+ else
+ pr_warning("no symbols found in %s, maybe "
+ "install a debug package?\n", name);
return NULL;
}
}