perf tools: Add pid/tid filtering to report and script commands
The 'record' and 'top' tools already allow a user to specify a CSV of pids and/or tids of tasks to collect data. Add those options to the 'report' and 'script' analysis commands to only consider samples related to the given pids/tids. This is also inline with the existing comm option. Signed-off-by: David Ahern <dsahern@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1427212361-7066-1-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
		
					parent
					
						
							
								6b1f342354
							
						
					
				
			
			
				commit
				
					
						e03eaa400c
					
				
			
		
					 7 changed files with 67 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1562,6 +1562,10 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused)
 | 
			
		|||
	OPT_STRING('C', "cpu", &cpu_list, "cpu", "list of cpus to profile"),
 | 
			
		||||
	OPT_STRING('c', "comms", &symbol_conf.comm_list_str, "comm[,comm...]",
 | 
			
		||||
		   "only display events for these comms"),
 | 
			
		||||
	OPT_STRING(0, "pid", &symbol_conf.pid_list_str, "pid[,pid...]",
 | 
			
		||||
		   "only consider symbols in these pids"),
 | 
			
		||||
	OPT_STRING(0, "tid", &symbol_conf.tid_list_str, "tid[,tid...]",
 | 
			
		||||
		   "only consider symbols in these tids"),
 | 
			
		||||
	OPT_BOOLEAN('I', "show-info", &show_full_info,
 | 
			
		||||
		    "display extended information from perf.data file"),
 | 
			
		||||
	OPT_BOOLEAN('\0', "show-kernel-path", &symbol_conf.show_kernel_path,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue