intel-bts.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) | intel-bts.c (ee84a3032b74055feed192a727e872b0a18d1140) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * intel-bts.c: Intel Processor Trace support 4 * Copyright (c) 2013-2015, Intel Corporation. 5 */ 6 7#include <endian.h> 8#include <errno.h> --- 442 unchanged lines hidden (view full) --- 451 452 if (btsq->done) 453 return 1; 454 455 if (btsq->pid == -1) { 456 thread = machine__find_thread(btsq->bts->machine, -1, 457 btsq->tid); 458 if (thread) | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * intel-bts.c: Intel Processor Trace support 4 * Copyright (c) 2013-2015, Intel Corporation. 5 */ 6 7#include <endian.h> 8#include <errno.h> --- 442 unchanged lines hidden (view full) --- 451 452 if (btsq->done) 453 return 1; 454 455 if (btsq->pid == -1) { 456 thread = machine__find_thread(btsq->bts->machine, -1, 457 btsq->tid); 458 if (thread) |
459 btsq->pid = thread->pid_; | 459 btsq->pid = thread__pid(thread); |
460 } else { 461 thread = machine__findnew_thread(btsq->bts->machine, btsq->pid, 462 btsq->tid); 463 } 464 465 queue = &btsq->bts->queues.queue_array[btsq->queue_nr]; 466 467 if (!buffer) --- 472 unchanged lines hidden --- | 460 } else { 461 thread = machine__findnew_thread(btsq->bts->machine, btsq->pid, 462 btsq->tid); 463 } 464 465 queue = &btsq->bts->queues.queue_array[btsq->queue_nr]; 466 467 if (!buffer) --- 472 unchanged lines hidden --- |