Commit 9749b90e authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

perf tools: Rename struct thread_map to struct perf_thread_map



Rename struct thread_map to struct perf_thread_map, so it could be part
of libperf.

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190721112506.12306-4-jolsa@kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent f854839b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ int test__perf_time_to_tsc(struct test *test __maybe_unused, int subtest __maybe
		},
		.sample_time	     = true,
	};
	struct thread_map *threads = NULL;
	struct perf_thread_map *threads = NULL;
	struct perf_cpu_map *cpus = NULL;
	struct perf_evlist *evlist = NULL;
	struct perf_evsel *evsel = NULL;
+1 −1
Original line number Diff line number Diff line
@@ -1047,7 +1047,7 @@ record__finish_output(struct record *rec)
static int record__synthesize_workload(struct record *rec, bool tail)
{
	int err;
	struct thread_map *thread_map;
	struct perf_thread_map *thread_map;

	if (rec->opts.tail_synthesize != tail)
		return 0;
+2 −2
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ struct perf_sched_map {
	DECLARE_BITMAP(comp_cpus_mask, MAX_CPUS);
	int			*comp_cpus;
	bool			 comp;
	struct thread_map	*color_pids;
	struct perf_thread_map *color_pids;
	const char		*color_pids_str;
	struct perf_cpu_map	*color_cpus;
	const char		*color_cpus_str;
@@ -3195,7 +3195,7 @@ static int setup_map_cpus(struct perf_sched *sched)

static int setup_color_pids(struct perf_sched *sched)
{
	struct thread_map *map;
	struct perf_thread_map *map;

	if (!sched->map.color_pids_str)
		return 0;
+1 −1
Original line number Diff line number Diff line
@@ -1628,7 +1628,7 @@ struct perf_script {
	bool			allocated;
	bool			per_event_dump;
	struct perf_cpu_map	*cpus;
	struct thread_map	*threads;
	struct perf_thread_map *threads;
	int			name_width;
	const char              *time_str;
	struct perf_time_interval *ptime_range;
+2 −2
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ struct perf_stat {
	struct perf_tool	 tool;
	bool			 maps_allocated;
	struct perf_cpu_map	*cpus;
	struct thread_map	*threads;
	struct perf_thread_map *threads;
	enum aggr_mode		 aggr_mode;
};

@@ -395,7 +395,7 @@ static bool perf_evsel__should_store_id(struct perf_evsel *counter)
}

static bool is_target_alive(struct target *_target,
			    struct thread_map *threads)
			    struct perf_thread_map *threads)
{
	struct stat st;
	int i;
Loading