[sysprof] perf: use task-ids instead of pids
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] perf: use task-ids instead of pids
- Date: Thu, 23 Jan 2020 20:26:14 +0000 (UTC)
commit bcfaa6caa868d8e658d3505787b262c63271842a
Author: Christian Hergert <chergert redhat com>
Date: Thu Jan 23 12:26:18 2020 -0800
perf: use task-ids instead of pids
The pids might overlap, which isn't that useful for us when we are creating
threads. Instead use the task-ids (which should basically overlap anyway).
src/libsysprof/sysprof-perf-source.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof/sysprof-perf-source.c b/src/libsysprof/sysprof-perf-source.c
index 238b9ea..17e1980 100644
--- a/src/libsysprof/sysprof-perf-source.c
+++ b/src/libsysprof/sysprof-perf-source.c
@@ -358,8 +358,8 @@ sysprof_perf_source_handle_event (SysprofPerfCounterEvent *event,
sysprof_capture_writer_add_fork (self->writer,
event->fork.time,
cpu,
- event->fork.ppid,
- event->fork.pid);
+ event->fork.ptid,
+ event->fork.tid);
/*
* TODO: We should add support for "follow fork" of the GPid if we are
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]