Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 148) sorted by relevance

123456

/tools/perf/tests/attr/
Dtest-stat-detailed-32 command = stat
8 [event1:base-stat]
14 [event2:base-stat]
20 [event3:base-stat]
26 [event4:base-stat]
32 [event5:base-stat]
39 [event6:base-stat]
46 [event7:base-stat]
53 [event8:base-stat]
60 [event9:base-stat]
[all …]
Dtest-stat-detailed-22 command = stat
8 [event1:base-stat]
14 [event2:base-stat]
20 [event3:base-stat]
26 [event4:base-stat]
32 [event5:base-stat]
39 [event6:base-stat]
46 [event7:base-stat]
53 [event8:base-stat]
60 [event9:base-stat]
[all …]
Dtest-stat-detailed-12 command = stat
8 [event1:base-stat]
14 [event2:base-stat]
20 [event3:base-stat]
26 [event4:base-stat]
32 [event5:base-stat]
39 [event6:base-stat]
46 [event7:base-stat]
53 [event8:base-stat]
60 [event9:base-stat]
[all …]
Dtest-stat-default2 command = stat
7 [event1:base-stat]
13 [event2:base-stat]
19 [event3:base-stat]
25 [event4:base-stat]
31 [event5:base-stat]
38 [event6:base-stat]
45 [event7:base-stat]
52 [event8:base-stat]
59 [event9:base-stat]
[all …]
DREADME57 perf stat -e cycles kill (test-stat-basic)
58 perf stat kill (test-stat-default)
59 perf stat -d kill (test-stat-detailed-1)
60 perf stat -dd kill (test-stat-detailed-2)
61 perf stat -ddd kill (test-stat-detailed-3)
62 perf stat --group -e cycles,instructions kill (test-stat-group)
63 perf stat -e '{cycles,instructions}' kill (test-stat-group1)
64 perf stat -i -e cycles kill (test-stat-no-inherit)
Dtest-stat-group12 command = stat
6 [event-1:base-stat]
11 [event-2:base-stat]
Dtest-stat-group2 command = stat
6 [event-1:base-stat]
11 [event-2:base-stat]
Dtest-stat-basic2 command = stat
6 [event:base-stat]
Dtest-stat-no-inherit2 command = stat
6 [event:base-stat]
Dtest-stat-C02 command = stat
6 [event:base-stat]
/tools/perf/tests/
Dhists_output.c170 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
176 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
182 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
188 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
194 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
200 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
206 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
212 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
218 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
269 CPU(he) == 1 && PID(he) == 100 && he->stat.period == 300); in test2()
[all …]
/tools/testing/selftests/mount/
Dunprivileged-remount-test.c118 struct statvfs stat; in read_mnt_flags() local
121 ret = statvfs(path, &stat); in read_mnt_flags()
126 if (stat.f_flag & ~(ST_RDONLY | ST_NOSUID | ST_NODEV | \ in read_mnt_flags()
132 if (stat.f_flag & ST_RDONLY) in read_mnt_flags()
134 if (stat.f_flag & ST_NOSUID) in read_mnt_flags()
136 if (stat.f_flag & ST_NODEV) in read_mnt_flags()
138 if (stat.f_flag & ST_NOEXEC) in read_mnt_flags()
140 if (stat.f_flag & ST_NOATIME) in read_mnt_flags()
142 if (stat.f_flag & ST_NODIRATIME) in read_mnt_flags()
144 if (stat.f_flag & ST_RELATIME) in read_mnt_flags()
[all …]
/tools/perf/util/
Dpath.c75 struct stat st; in is_regular_file()
77 if (stat(file, &st)) in is_regular_file()
87 struct stat st; in is_directory()
90 if (stat(path, &st)) in is_directory()
Dtrace-event-info.c91 struct stat st; in record_header_files()
99 if (stat(path, &st) < 0) { in record_header_files()
123 if (stat(path, &st) < 0) { in record_header_files()
164 struct stat st; in copy_event_system()
185 ret = stat(format, &st); in copy_event_system()
207 ret = stat(format, &st); in copy_event_system()
256 struct stat st; in record_event_files()
301 ret = stat(sys, &st); in record_event_files()
338 struct stat st; in record_ftrace_printk()
347 ret = stat(path, &st); in record_ftrace_printk()
[all …]
Ddata.c93 struct stat st; in perf_data__open_dir()
96 if (stat(path, &st)) in perf_data__open_dir()
146 struct stat st; in perf_data__update_dir()
159 struct stat st; in check_pipe()
180 struct stat st; in check_backup()
185 if (!stat(data->path, &st) && st.st_size) { in check_backup()
214 struct stat st; in is_dir()
216 if (stat(data->path, &st)) in is_dir()
224 struct stat st; in open_file_read()
Dutil.c75 struct stat st; in mkdir_p()
82 if (stat(path, &st) == 0) in mkdir_p()
89 err = stat(path, &st) && mkdir(path, mode); in mkdir_p()
96 return (stat(path, &st) && mkdir(path, mode)) ? -1 : 0; in mkdir_p()
136 struct stat statbuf; in rm_rf_depth_pat()
/tools/power/cpupower/utils/helpers/
Dsysfs.c55 struct stat statbuf; in sysfs_is_cpu_online()
59 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
67 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
108 struct stat statbuf; in sysfs_idlestate_file_exists()
113 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists()
357 struct stat statbuf; in sysfs_get_idlestate_count()
362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
/tools/power/cpupower/lib/
Dcpuidle.c34 struct stat statbuf; in cpuidle_state_file_exists()
39 if (stat(path, &statbuf) != 0) in cpuidle_state_file_exists()
287 struct stat statbuf; in cpuidle_state_count()
292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
/tools/perf/Documentation/
Dperf-stat.txt1 perf-stat(1)
6 perf-stat - Run a command and gather performance counter statistics
11 'perf stat' [-e <EVENT> | --event=EVENT] [-a] <command>
12 'perf stat' [-e <EVENT> | --event=EVENT] [-a] -- <command> [<options>]
13 'perf stat' [-e <EVENT> | --event=EVENT] [-a] record [-o file] -- <command> [<options>]
14 'perf stat' report [-i file]
52 perf stat -A -a -e cpu/event,percore=1/,otherevent ...
72 stat events on existing process id (comma separated list)
76 stat events on existing thread id (comma separated list)
128 $ perf stat --null -r 5 --table perf bench sched pipe
[all …]
Dperf-kmem.txt11 'perf kmem' {record|stat} [<options>]
20 'perf kmem stat' to report kernel memory statistics.
64 Show live page stat. The perf kmem shows total allocation stat by
/tools/testing/selftests/sync/
Dsync_test.c67 struct stat sbuf; in sync_api_supported()
70 ret = stat("/sys/kernel/debug/sync/sw_sync", &sbuf); in sync_api_supported()
/tools/testing/selftests/proc/
Dfd-001-lookup.c35 struct stat st; in test_lookup_pass()
38 memset(&st, 0, sizeof(struct stat)); in test_lookup_pass()
46 struct stat st; in test_lookup_fail()
/tools/testing/selftests/nsfs/
Dpidns.c46 struct stat st1, st2; in main()
65 if (stat(path, &st2)) in main()
Downer.c29 struct stat st1, st2; in main()
68 if (stat(path, &st2)) in main()
/tools/perf/lib/Documentation/tutorial/
Dtutorial.rst43 ex-1-compile ex-2-evsel-stat ex-3-evlist-stat
115 ex-2-evsel-stat example
120 ex-3-evlist-stat example

123456