]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/header.c
perf symbols: Set module info when build-id event found
[karo-tx-linux.git] / tools / perf / util / header.c
index c40a4d8acf8b4167041c217ef4801ae7fe6abd43..5cac8d5e009a88ff096d9e2f8026e39e8567c595 100644 (file)
@@ -1473,7 +1473,7 @@ static int __event_process_build_id(struct build_id_event *bev,
                        struct kmod_path m = { .name = NULL, };
 
                        if (!kmod_path__parse_name(&m, filename) && m.kmod)
-                               dso__set_short_name(dso, strdup(m.name), true);
+                               dso__set_module_info(dso, &m, machine);
                        else
                                dso->kernel = dso_type;