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

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

Version: ~ [ linux-5.1-rc1 ] ~ [ linux-5.0.3 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.30 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.107 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.164 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.176 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.136 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.63 ] ~ [ 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.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ 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 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _PERF_PERF_H
  3 #define _PERF_PERF_H
  4 
  5 #include <time.h>
  6 #include <stdbool.h>
  7 #include <linux/types.h>
  8 #include <linux/stddef.h>
  9 #include <linux/perf_event.h>
 10 
 11 extern bool test_attr__enabled;
 12 void test_attr__ready(void);
 13 void test_attr__init(void);
 14 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu,
 15                      int fd, int group_fd, unsigned long flags);
 16 
 17 #define HAVE_ATTR_TEST
 18 #include "perf-sys.h"
 19 
 20 static inline unsigned long long rdclock(void)
 21 {
 22         struct timespec ts;
 23 
 24         clock_gettime(CLOCK_MONOTONIC, &ts);
 25         return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
 26 }
 27 
 28 #ifndef MAX_NR_CPUS
 29 #define MAX_NR_CPUS                     1024
 30 #endif
 31 
 32 extern const char *input_name;
 33 extern bool perf_host, perf_guest;
 34 extern const char perf_version_string[];
 35 
 36 void pthread__unblock_sigwinch(void);
 37 
 38 #include "util/target.h"
 39 
 40 struct record_opts {
 41         struct target target;
 42         bool         group;
 43         bool         inherit_stat;
 44         bool         no_buffering;
 45         bool         no_inherit;
 46         bool         no_inherit_set;
 47         bool         no_samples;
 48         bool         raw_samples;
 49         bool         sample_address;
 50         bool         sample_phys_addr;
 51         bool         sample_weight;
 52         bool         sample_time;
 53         bool         sample_time_set;
 54         bool         sample_cpu;
 55         bool         period;
 56         bool         period_set;
 57         bool         running_time;
 58         bool         full_auxtrace;
 59         bool         auxtrace_snapshot_mode;
 60         bool         record_namespaces;
 61         bool         record_switch_events;
 62         bool         all_kernel;
 63         bool         all_user;
 64         bool         tail_synthesize;
 65         bool         overwrite;
 66         bool         ignore_missing_thread;
 67         bool         strict_freq;
 68         bool         sample_id;
 69         bool         bpf_event;
 70         unsigned int freq;
 71         unsigned int mmap_pages;
 72         unsigned int auxtrace_mmap_pages;
 73         unsigned int user_freq;
 74         u64          branch_stack;
 75         u64          sample_intr_regs;
 76         u64          sample_user_regs;
 77         u64          default_interval;
 78         u64          user_interval;
 79         size_t       auxtrace_snapshot_size;
 80         const char   *auxtrace_snapshot_opts;
 81         bool         sample_transaction;
 82         unsigned     initial_delay;
 83         bool         use_clockid;
 84         clockid_t    clockid;
 85         u64          clockid_res_ns;
 86         int          nr_cblocks;
 87         int          affinity;
 88 };
 89 
 90 enum perf_affinity {
 91         PERF_AFFINITY_SYS = 0,
 92         PERF_AFFINITY_NODE,
 93         PERF_AFFINITY_CPU,
 94         PERF_AFFINITY_MAX
 95 };
 96 
 97 struct option;
 98 extern const char * const *record_usage;
 99 extern struct option *record_options;
100 extern int version_verbose;
101 
102 int record__parse_freq(const struct option *opt, const char *str, int unset);
103 #endif
104 

~ [ 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