arm-spe.c (5c68005083d620b1499fc81926a514d39ae8b88c) | arm-spe.c (ee84a3032b74055feed192a727e872b0a18d1140) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Arm Statistical Profiling Extensions (SPE) support 4 * Copyright (c) 2017-2018, Arm Ltd. 5 */ 6 7#include <byteswap.h> 8#include <endian.h> --- 240 unchanged lines hidden (view full) --- 249 speq->tid = queue->tid; 250 251 if ((!speq->thread) && (speq->tid != -1)) { 252 speq->thread = machine__find_thread(spe->machine, -1, 253 speq->tid); 254 } 255 256 if (speq->thread) { | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Arm Statistical Profiling Extensions (SPE) support 4 * Copyright (c) 2017-2018, Arm Ltd. 5 */ 6 7#include <byteswap.h> 8#include <endian.h> --- 240 unchanged lines hidden (view full) --- 249 speq->tid = queue->tid; 250 251 if ((!speq->thread) && (speq->tid != -1)) { 252 speq->thread = machine__find_thread(spe->machine, -1, 253 speq->tid); 254 } 255 256 if (speq->thread) { |
257 speq->pid = speq->thread->pid_; | 257 speq->pid = thread__pid(speq->thread); |
258 if (queue->cpu == -1) | 258 if (queue->cpu == -1) |
259 speq->cpu = speq->thread->cpu; | 259 speq->cpu = thread__cpu(speq->thread); |
260 } 261} 262 263static int arm_spe_set_tid(struct arm_spe_queue *speq, pid_t tid) 264{ 265 struct arm_spe *spe = speq->spe; 266 int err = machine__set_current_tid(spe->machine, speq->cpu, -1, tid); 267 --- 1112 unchanged lines hidden --- | 260 } 261} 262 263static int arm_spe_set_tid(struct arm_spe_queue *speq, pid_t tid) 264{ 265 struct arm_spe *spe = speq->spe; 266 int err = machine__set_current_tid(spe->machine, speq->cpu, -1, tid); 267 --- 1112 unchanged lines hidden --- |