aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2019-02-27 13:43:30 -0700
committerMathieu Poirier <mathieu.poirier@linaro.org>2019-05-23 16:58:58 -0600
commit3f6c56a12f76726705f82135d2c9cbb38b95ad22 (patch)
tree1b0ee33a12dd58c8aa8ee8d2d8bb8755a6c0a9a3
parentf4c7e2ec62baec0a1208cee8737c162de0495035 (diff)
perf tools: Get rid of unused cpu in struct cs_etm_queue
Nowadays the synthesize code is using the packet's cpu information, making cs_etm_queue::cpu useless. As such simply remove it. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
-rw-r--r--tools/perf/util/cs-etm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
index 9e8212c74055..531bbb355ba4 100644
--- a/tools/perf/util/cs-etm.c
+++ b/tools/perf/util/cs-etm.c
@@ -79,7 +79,6 @@ struct cs_etm_queue {
struct auxtrace_buffer *buffer;
unsigned int queue_nr;
pid_t pid, tid;
- int cpu;
u64 offset;
const unsigned char *buf;
size_t buf_len, buf_used;
@@ -599,7 +598,6 @@ static int cs_etm__setup_queue(struct cs_etm_auxtrace *etm,
queue->priv = etmq;
etmq->etm = etm;
etmq->queue_nr = queue_nr;
- etmq->cpu = queue->cpu;
etmq->tid = queue->tid;
etmq->pid = -1;
etmq->offset = 0;
@@ -831,11 +829,8 @@ static void cs_etm__set_pid_tid_cpu(struct cs_etm_auxtrace *etm,
etmq->thread = machine__find_thread(etm->machine, -1,
etmq->tid);
- if (etmq->thread) {
+ if (etmq->thread)
etmq->pid = etmq->thread->pid_;
- if (queue->cpu == -1)
- etmq->cpu = etmq->thread->cpu;
- }
}
static int cs_etm__synth_instruction_sample(struct cs_etm_queue *etmq,