Skip to contentSkip to conversation

perftools: builtin-top: Use pid_t for target_{pid|tid}

PATCH In review Denis Kirjanov 1 participant 2 messages Feb 5, 2011 – Feb 8, 2011 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perftools: builtin-top: Use pid_t for target_{pid|tid}

Use pid_t data type for target_{pid|tid} vars.

---
 tools/perf/builtin-top.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/builtin-top.c +2 -2
index b6998e0..e4ea084 100644
@@ -67,8 +67,8 @@ static int			default_interval		=      0;
 static int			count_filter			=      5;
 static int			print_entries;
 
-static int			target_pid			=     -1;
-static int			target_tid			=     -1;
+static pid_t			target_pid			=     -1;
+static pid_t			target_tid			=     -1;
 static struct thread_map	*threads;
 static bool			inherit				=  false;
 static struct cpu_map		*cpus;
Signature · 1 line
1.7.3.4
#1 lore raw

[tip:perf/core] perf top: Use pid_t for target_{pid|tid}

Commit-ID:  ef4d001d79ac4bab6c2d81e9986a42059f877ec3
Gitweb:     http://git.kernel.org/tip/ef4d001d79ac4bab6c2d81e9986a42059f877ec3
Author:     Denis Kirjanov <[email protected]>
AuthorDate: Sat, 5 Feb 2011 20:39:38 +0000
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 7 Feb 2011 09:10:15 -0200

perf top: Use pid_t for target_{pid|tid}

Use pid_t data type for target_{pid|tid} vars.

Cc: Ingo Molnar <[email protected]>
LKML-Reference: <[email protected]>

[ committer note: those variables are now in struct perf_top, fixed ]
---
 tools/perf/util/top.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
tools/perf/util/top.h +2 -2
index fe44afb..62e3293 100644
@@ -46,8 +46,8 @@ struct perf_top {
 	u64		   exact_samples;
 	u64		   guest_us_samples, guest_kernel_samples;
 	int		   print_entries, count_filter, delay_secs;
-	int		   display_weighted, freq, rb_entries;
-	int		   sym_counter, target_pid, target_tid;
+	int		   display_weighted, freq, rb_entries, sym_counter;
+	pid_t		   target_pid, target_tid;
 	bool		   hide_kernel_symbols, hide_user_symbols, zero;
 	const char	   *cpu_list;
 	struct perf_evsel  *sym_evsel;