]> Git Repo - linux.git/blobdiff - tools/perf/util/scripting-engines/trace-event-python.c
drivers, usb: convert ffs_data.ref from atomic_t to refcount_t
[linux.git] / tools / perf / util / scripting-engines / trace-event-python.c
index 581e0efd6356839567a9ae5303a3fa6581b8ee3b..783326cfbaa6bfdaeef277dc9545f55213ffa942 100644 (file)
@@ -369,10 +369,10 @@ static PyObject *python_process_callchain(struct perf_sample *sample,
                if (node->map) {
                        struct map *map = node->map;
                        const char *dsoname = "[unknown]";
-                       if (map && map->dso && (map->dso->name || map->dso->long_name)) {
+                       if (map && map->dso) {
                                if (symbol_conf.show_kernel_path && map->dso->long_name)
                                        dsoname = map->dso->long_name;
-                               else if (map->dso->name)
+                               else
                                        dsoname = map->dso->name;
                        }
                        pydict_set_item_string_decref(pyelem, "dso",
This page took 0.036321 seconds and 4 git commands to generate.