diff options
Diffstat (limited to 'tools/perf/util/thread.c')
| -rw-r--r-- | tools/perf/util/thread.c | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index 590793cc5142..b64e9e049636 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c @@ -1,11 +1,11 @@  // SPDX-License-Identifier: GPL-2.0 -#include "../perf.h"  #include <errno.h>  #include <stdlib.h>  #include <stdio.h>  #include <string.h>  #include <linux/kernel.h>  #include <linux/zalloc.h> +#include "dso.h"  #include "session.h"  #include "thread.h"  #include "thread-stack.h" @@ -105,7 +105,6 @@ void thread__delete(struct thread *thread)  	}  	up_write(&thread->comm_lock); -	unwind__finish_access(thread);  	nsinfo__zput(thread->nsinfo);  	srccode_state_free(&thread->srccode_state); @@ -170,7 +169,7 @@ struct namespaces *thread__namespaces(struct thread *thread)  }  static int __thread__set_namespaces(struct thread *thread, u64 timestamp, -				    struct namespaces_event *event) +				    struct perf_record_namespaces *event)  {  	struct namespaces *new, *curr = __thread__namespaces(thread); @@ -194,7 +193,7 @@ static int __thread__set_namespaces(struct thread *thread, u64 timestamp,  }  int thread__set_namespaces(struct thread *thread, u64 timestamp, -			   struct namespaces_event *event) +			   struct perf_record_namespaces *event)  {  	int ret; @@ -252,7 +251,7 @@ static int ____thread__set_comm(struct thread *thread, const char *str,  		list_add(&new->list, &thread->comm_list);  		if (exec) -			unwind__flush_access(thread); +			unwind__flush_access(thread->mg);  	}  	thread->comm_set = true; @@ -332,7 +331,7 @@ int thread__insert_map(struct thread *thread, struct map *map)  {  	int ret; -	ret = unwind__prepare_access(thread, map, NULL); +	ret = unwind__prepare_access(thread->mg, map, NULL);  	if (ret)  		return ret; @@ -352,7 +351,7 @@ static int __thread__prepare_access(struct thread *thread)  	down_read(&maps->lock);  	for (map = maps__first(maps); map; map = map__next(map)) { -		err = unwind__prepare_access(thread, map, &initialized); +		err = unwind__prepare_access(thread->mg, map, &initialized);  		if (err || initialized)  			break;  	}  |