|
@@ -1075,7 +1075,7 @@ static int latency_migrate_task_event(struct perf_sched *sched,
|
|
if (!atoms) {
|
|
if (!atoms) {
|
|
if (thread_atoms_insert(sched, migrant))
|
|
if (thread_atoms_insert(sched, migrant))
|
|
return -1;
|
|
return -1;
|
|
- register_pid(sched, migrant->pid, migrant->comm);
|
|
|
|
|
|
+ register_pid(sched, migrant->tid, migrant->comm);
|
|
atoms = thread_atoms_search(&sched->atom_root, migrant, &sched->cmp_pid);
|
|
atoms = thread_atoms_search(&sched->atom_root, migrant, &sched->cmp_pid);
|
|
if (!atoms) {
|
|
if (!atoms) {
|
|
pr_err("migration-event: Internal tree error");
|
|
pr_err("migration-event: Internal tree error");
|
|
@@ -1115,7 +1115,7 @@ static void output_lat_thread(struct perf_sched *sched, struct work_atoms *work_
|
|
sched->all_runtime += work_list->total_runtime;
|
|
sched->all_runtime += work_list->total_runtime;
|
|
sched->all_count += work_list->nb_atoms;
|
|
sched->all_count += work_list->nb_atoms;
|
|
|
|
|
|
- ret = printf(" %s:%d ", work_list->thread->comm, work_list->thread->pid);
|
|
|
|
|
|
+ ret = printf(" %s:%d ", work_list->thread->comm, work_list->thread->tid);
|
|
|
|
|
|
for (i = 0; i < 24 - ret; i++)
|
|
for (i = 0; i < 24 - ret; i++)
|
|
printf(" ");
|
|
printf(" ");
|
|
@@ -1131,9 +1131,9 @@ static void output_lat_thread(struct perf_sched *sched, struct work_atoms *work_
|
|
|
|
|
|
static int pid_cmp(struct work_atoms *l, struct work_atoms *r)
|
|
static int pid_cmp(struct work_atoms *l, struct work_atoms *r)
|
|
{
|
|
{
|
|
- if (l->thread->pid < r->thread->pid)
|
|
|
|
|
|
+ if (l->thread->tid < r->thread->tid)
|
|
return -1;
|
|
return -1;
|
|
- if (l->thread->pid > r->thread->pid)
|
|
|
|
|
|
+ if (l->thread->tid > r->thread->tid)
|
|
return 1;
|
|
return 1;
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
@@ -1321,7 +1321,7 @@ static int map_switch_event(struct perf_sched *sched, struct perf_evsel *evsel,
|
|
printf("*");
|
|
printf("*");
|
|
|
|
|
|
if (sched->curr_thread[cpu]) {
|
|
if (sched->curr_thread[cpu]) {
|
|
- if (sched->curr_thread[cpu]->pid)
|
|
|
|
|
|
+ if (sched->curr_thread[cpu]->tid)
|
|
printf("%2s ", sched->curr_thread[cpu]->shortname);
|
|
printf("%2s ", sched->curr_thread[cpu]->shortname);
|
|
else
|
|
else
|
|
printf(". ");
|
|
printf(". ");
|
|
@@ -1332,7 +1332,7 @@ static int map_switch_event(struct perf_sched *sched, struct perf_evsel *evsel,
|
|
printf(" %12.6f secs ", (double)timestamp/1e9);
|
|
printf(" %12.6f secs ", (double)timestamp/1e9);
|
|
if (new_shortname) {
|
|
if (new_shortname) {
|
|
printf("%s => %s:%d\n",
|
|
printf("%s => %s:%d\n",
|
|
- sched_in->shortname, sched_in->comm, sched_in->pid);
|
|
|
|
|
|
+ sched_in->shortname, sched_in->comm, sched_in->tid);
|
|
} else {
|
|
} else {
|
|
printf("\n");
|
|
printf("\n");
|
|
}
|
|
}
|