lkml.org 
[lkml]   [2011]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] perftools: builtin-top: Use pid_t for target_{pid|tid}
Use pid_t data type for target_{pid|tid} vars.

Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
---
tools/perf/builtin-top.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index b6998e0..e4ea084 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -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;
--
1.7.3.4


\
 
 \ /
  Last update: 2011-02-05 21:41    [W:0.037 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site