perf: Remove a few unused bits
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 31 May 2016 19:17:06 +0000 (15:17 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jun 2016 15:48:39 +0000 (11:48 -0400)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/profile/perf/perf_core.c
tools/profile/perf/perf_core.h

index 015f462..0d1d575 100644 (file)
 #include "perf_core.h"
 #include "elf.h"
 
-struct event_coords {
-       char *buffer;
-       const char *event;
-       const char *umask;
-};
-
 struct perf_generic_event {
        char                                            *name;
        uint32_t                                        type;
@@ -180,7 +174,6 @@ static bool parse_pfm_encoding(const char *str, struct perf_eventsel *sel)
                return FALSE;
        }
        sel->ev.event = encode.codes[0];
-       sel->eidx = encode.idx;
        x86_handle_pseudo_encoding(sel);
        sel->type = PERF_TYPE_RAW;
        sel->config = PMEV_GET_MASK(sel->ev.event) | PMEV_GET_EVENT(sel->ev.event);
@@ -277,7 +270,6 @@ static bool parse_raw_encoding(const char *str, struct perf_eventsel *sel)
 
        if (code == -1)
                return FALSE;
-       sel->eidx = -1;
        sel->ev.event = code;
        strlcpy(sel->fq_str, str, MAX_FQSTR_SZ);
        colon = strchr(str, ':');
index c75a825..368cf64 100644 (file)
@@ -32,7 +32,6 @@ struct perf_eventsel {
        bool attr_emitted;
        uint32_t type;
        uint64_t config;
-       int eidx;
        char fq_str[MAX_FQSTR_SZ];
 };