~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/lib/perf/include/internal/evsel.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/lib/perf/include/internal/evsel.h (Version linux-6.12-rc7) and /tools/lib/perf/include/internal/evsel.h (Version linux-5.2.21)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef __LIBPERF_INTERNAL_EVSEL_H                
  3 #define __LIBPERF_INTERNAL_EVSEL_H                
  4                                                   
  5 #include <linux/types.h>                          
  6 #include <linux/perf_event.h>                     
  7 #include <stdbool.h>                              
  8 #include <sys/types.h>                            
  9 #include <internal/cpumap.h>                      
 10                                                   
 11 struct perf_thread_map;                           
 12 struct xyarray;                                   
 13                                                   
 14 /*                                                
 15  * Per fd, to map back from PERF_SAMPLE_ID to     
 16  * more than one entry in the evlist.             
 17  */                                               
 18 struct perf_sample_id {                           
 19         struct hlist_node        node;            
 20         u64                      id;              
 21         struct perf_evsel       *evsel;           
 22        /*                                         
 23         * 'idx' will be used for AUX area samp    
 24         * data that will be queued for decodin    
 25         * queues for each CPU (per-cpu tracing    
 26         * The sample ID can be used to lookup     
 27         * queue number.                           
 28         */                                        
 29         int                      idx;             
 30         struct perf_cpu          cpu;             
 31         pid_t                    tid;             
 32                                                   
 33         /* Guest machine pid and VCPU, valid o    
 34         pid_t                    machine_pid;     
 35         struct perf_cpu          vcpu;            
 36                                                   
 37         /* Holds total ID period value for PER    
 38         u64                      period;          
 39 };                                                
 40                                                   
 41 struct perf_evsel {                               
 42         struct list_head         node;            
 43         struct perf_event_attr   attr;            
 44         /** The commonly used cpu map of CPUs     
 45         struct perf_cpu_map     *cpus;            
 46         /**                                       
 47          * The cpu map read from the PMU. For     
 48          * CPUs the event can be opened upon.     
 49          * cpu map for opening the event on, f    
 50          * socket for an uncore event.            
 51          */                                       
 52         struct perf_cpu_map     *own_cpus;        
 53         struct perf_thread_map  *threads;         
 54         struct xyarray          *fd;              
 55         struct xyarray          *mmap;            
 56         struct xyarray          *sample_id;       
 57         u64                     *id;              
 58         u32                      ids;             
 59         struct perf_evsel       *leader;          
 60                                                   
 61         /* parse modifier helper */               
 62         int                      nr_members;      
 63         /*                                        
 64          * system_wide is for events that need    
 65          * of user requested CPUs or threads.     
 66          * dummy event. Map propagation will s    
 67          * as software PMU events like dummy,     
 68          */                                       
 69         bool                     system_wide;     
 70         /*                                        
 71          * Some events, for example uncore eve    
 72          * i.e. it cannot be the 'any CPU' val    
 73          */                                       
 74         bool                     requires_cpu;    
 75         /** Is the PMU for the event a core on    
 76         bool                     is_pmu_core;     
 77         int                      idx;             
 78 };                                                
 79                                                   
 80 void perf_evsel__init(struct perf_evsel *evsel    
 81                       int idx);                   
 82 int perf_evsel__alloc_fd(struct perf_evsel *ev    
 83 void perf_evsel__close_fd(struct perf_evsel *e    
 84 void perf_evsel__free_fd(struct perf_evsel *ev    
 85 int perf_evsel__read_size(struct perf_evsel *e    
 86 int perf_evsel__apply_filter(struct perf_evsel    
 87                                                   
 88 int perf_evsel__alloc_id(struct perf_evsel *ev    
 89 void perf_evsel__free_id(struct perf_evsel *ev    
 90                                                   
 91 #endif /* __LIBPERF_INTERNAL_EVSEL_H */           
 92                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php