mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	perf scripts python: Fix missing call_path_id in export-to-postgresql script
The export does not work if only branches are exported because of a
missing column in the samples table.  Fix by adding the missing
call_path_id.
Fixes: 3521f3bc9d ("perf script: Update export-to-postgresql to support callchain export")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: http://lkml.kernel.org/r/1501749090-20357-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
			
			
This commit is contained in:
		
							parent
							
								
									2b728861a6
								
							
						
					
					
						commit
						c8a827285c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -340,7 +340,8 @@ if branches:
 | 
			
		|||
		'to_sym_offset	bigint,'
 | 
			
		||||
		'to_ip		bigint,'
 | 
			
		||||
		'branch_type	integer,'
 | 
			
		||||
		'in_tx		boolean)')
 | 
			
		||||
		'in_tx		boolean,'
 | 
			
		||||
		'call_path_id	bigint)')
 | 
			
		||||
else:
 | 
			
		||||
	do_query(query, 'CREATE TABLE samples ('
 | 
			
		||||
		'id		bigint		NOT NULL,'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue