]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/dwarf-aux.c
perf probe: Print an enum type variable in "enum variable-name" format when showing...
[karo-tx-linux.git] / tools / perf / util / dwarf-aux.c
index ee51e9b4dc0996709059723a07ff67fbf9f7da82..3e5f5430a28aa929741e2bd3ccbcf554ae62a074 100644 (file)
@@ -804,6 +804,8 @@ int die_get_typename(Dwarf_Die *vr_die, char *buf, int len)
                        tmp = "union ";
                else if (tag == DW_TAG_structure_type)
                        tmp = "struct ";
+               else if (tag == DW_TAG_enumeration_type)
+                       tmp = "enum ";
                /* Write a base name */
                ret = snprintf(buf, len, "%s%s", tmp, dwarf_diename(&type));
                return (ret >= len) ? -E2BIG : ret;