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

TOMOYO Linux Cross Reference
Linux/tools/perf/perf.h

Version: ~ [ linux-5.3 ] ~ [ linux-5.2.15 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.73 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.144 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.193 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.193 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.73 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _PERF_PERF_H
  2 #define _PERF_PERF_H
  3 
  4 #include <time.h>
  5 #include <stdbool.h>
  6 #include <linux/types.h>
  7 #include <linux/perf_event.h>
  8 
  9 extern bool test_attr__enabled;
 10 void test_attr__init(void);
 11 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu,
 12                      int fd, int group_fd, unsigned long flags);
 13 
 14 #define HAVE_ATTR_TEST
 15 #include "perf-sys.h"
 16 
 17 #ifndef NSEC_PER_SEC
 18 # define NSEC_PER_SEC                   1000000000ULL
 19 #endif
 20 #ifndef NSEC_PER_USEC
 21 # define NSEC_PER_USEC                  1000ULL
 22 #endif
 23 
 24 static inline unsigned long long rdclock(void)
 25 {
 26         struct timespec ts;
 27 
 28         clock_gettime(CLOCK_MONOTONIC, &ts);
 29         return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
 30 }
 31 
 32 #define MAX_NR_CPUS                     1024
 33 
 34 extern const char *input_name;
 35 extern bool perf_host, perf_guest;
 36 extern const char perf_version_string[];
 37 
 38 void pthread__unblock_sigwinch(void);
 39 
 40 #include "util/target.h"
 41 
 42 struct record_opts {
 43         struct target target;
 44         bool         group;
 45         bool         inherit_stat;
 46         bool         no_buffering;
 47         bool         no_inherit;
 48         bool         no_inherit_set;
 49         bool         no_samples;
 50         bool         raw_samples;
 51         bool         sample_address;
 52         bool         sample_weight;
 53         bool         sample_time;
 54         bool         sample_time_set;
 55         bool         sample_cpu;
 56         bool         period;
 57         bool         running_time;
 58         bool         full_auxtrace;
 59         bool         auxtrace_snapshot_mode;
 60         bool         record_switch_events;
 61         bool         all_kernel;
 62         bool         all_user;
 63         bool         tail_synthesize;
 64         bool         overwrite;
 65         unsigned int freq;
 66         unsigned int mmap_pages;
 67         unsigned int auxtrace_mmap_pages;
 68         unsigned int user_freq;
 69         u64          branch_stack;
 70         u64          sample_intr_regs;
 71         u64          default_interval;
 72         u64          user_interval;
 73         size_t       auxtrace_snapshot_size;
 74         const char   *auxtrace_snapshot_opts;
 75         bool         sample_transaction;
 76         unsigned     initial_delay;
 77         bool         use_clockid;
 78         clockid_t    clockid;
 79         unsigned int proc_map_timeout;
 80 };
 81 
 82 struct option;
 83 extern const char * const *record_usage;
 84 extern struct option *record_options;
 85 #endif
 86 

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp