Home
last modified time | relevance | path

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

1234567891011

/tools/perf/tests/attr/
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-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-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]
44 [event7:base-stat]
51 [event8:base-stat]
58 [event9:base-stat]
[all …]
DREADME63 perf stat -e cycles kill (test-stat-basic)
64 perf stat kill (test-stat-default)
65 perf stat -d kill (test-stat-detailed-1)
66 perf stat -dd kill (test-stat-detailed-2)
67 perf stat -ddd kill (test-stat-detailed-3)
68 perf stat -e '{cycles,instructions}' kill (test-stat-group1)
69 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-basic2 command = stat
6 [event:base-stat]
/tools/perf/tests/shell/
Dstat.sh10 if ! perf stat true 2>&1 | grep -E -q "Performance counter stats for 'true':"
21 if ! perf stat record -o - true | perf stat report -i - 2>&1 | \
33 if ! perf stat record -o - true | perf script -i - 2>&1 | \
45 if ! perf stat -e '{cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles}' \
51 …if ! perf stat -r2 -e '{cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles,cycles}:W' \
65 if ! perf stat -e '{slots,topdown-retiring}' true > /dev/null 2>&1
70 if perf stat -e '{slots,topdown-retiring}' true 2>&1 | grep -E -q "<not supported>"
76 if perf stat -e '{topdown-retiring,slots}' true 2>&1 | grep -E -q "<not supported>"
91 if ! perf stat --no-merge -e "$ok_grouping" true > /dev/null 2>&1
97 if perf stat --no-merge -e "$group_needs_break" true 2>&1 | grep -E -q "<not supported>"
[all …]
Dstat+json_output.sh39 perf stat -j -o "${stat_output}" true
52 perf stat -j -a -o "${stat_output}" true
65 perf stat -j -A -a --no-merge -o "${stat_output}" true
73 perf stat -j -I 1000 -o "${stat_output}" true
82 perf stat -j -e cpu-clock -o "${stat_output}" true
95 perf stat -j --per-core -a -o "${stat_output}" true
108 perf stat -j --per-thread -p $$ -o "${stat_output}" true
121 perf stat -j --per-cache -a true 2>&1 | $PYTHON $pythonchecker --per-cache
133 perf stat -j --per-cluster -a true 2>&1 | $PYTHON $pythonchecker --per-cluster
145 perf stat -j --per-die -a -o "${stat_output}" true
[all …]
Dstat_bpf_counters.sh44 …base_instructions=$(perf stat --no-big-num -e instructions -- $workload 2>&1 | awk '/instructions/…
45 …bpf_instructions=$(perf stat --no-big-num --bpf-counters -e instructions -- $workload 2>&1 | awk …
54 …stat_output=$(perf stat --no-big-num -e instructions/name=base_instructions/,instructions/name=bpf…
63 if ! perf stat -e instructions --bpf-counters true > /dev/null 2>&1; then
66 perf --no-pager stat -e instructions --bpf-counters true || true
Dstat+shadow_stat.sh10 perf stat -a true > /dev/null 2>&1 || exit 2
13 perf stat -a -e cycles sleep 1 2>&1 | grep -e cpu_core && exit 2
17 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \
56 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \
Dstat_bpf_counters_cgrp.sh15 if ! perf stat -a --bpf-counters --for-each-cgroup / true > /dev/null 2>&1; then
18 perf --no-pager stat -a --bpf-counters --for-each-cgroup / true || true
51 …check_system_wide_counted_output=$(perf stat -a --bpf-counters --for-each-cgroup ${test_cgroups} -…
63 …check_cpu_list_counted_output=$(perf stat -C 0,1 --bpf-counters --for-each-cgroup ${test_cgroups} …
Dstat_all_metrics.sh8 result=$(perf stat -M "$m" true 2>&1)
14 result=$(perf stat -M "$m" -a sleep 0.01 2>&1)
21 result=$(perf stat -M "$m" perf bench internals synthesize 2>&1)
/tools/perf/tests/shell/lib/
Dstat_output.sh14 perf stat $2 true
27 perf stat -a $2 true
40 perf stat -A -a --no-merge $2 true
48 perf stat -I 1000 $2 true
56 perf stat -e cpu-clock $2 true
69 perf stat --per-core -a $2 true
82 perf stat --per-thread -p $$ $2 true
95 perf stat --per-cache -a $2 true
108 perf stat --per-cluster -a $2 true
120 perf stat --per-die -a $2 true
[all …]
/tools/testing/selftests/user_events/
Duser_events_selftests.h21 struct stat buf; in tracefs_enabled()
29 ret = stat("/sys/kernel/tracing", &buf); in tracefs_enabled()
37 ret = stat("/sys/kernel/tracing/README", &buf); in tracefs_enabled()
48 ret = stat("/sys/kernel/tracing/README", &buf); in tracefs_enabled()
62 struct stat buf; in user_events_enabled()
79 ret = stat("/sys/kernel/tracing/user_events_data", &buf); in user_events_enabled()
/tools/testing/selftests/drivers/sdsi/
Dsdsi_test.py67 mode = os.stat(folder + "guid").st_mode & 0o777
69 mode = os.stat(folder + "registers").st_mode & 0o777
71 mode = os.stat(folder + "provision_akc").st_mode & 0o777
73 mode = os.stat(folder + "provision_cap").st_mode & 0o777
75 mode = os.stat(folder + "state_certificate").st_mode & 0o777
81 st = os.stat(folder + "guid")
85 st = os.stat(folder + "registers")
89 st = os.stat(folder + "provision_akc")
93 st = os.stat(folder + "provision_cap")
97 st = os.stat(folder + "state_certificate")
[all …]
/tools/perf/util/
Dpath.c50 struct stat st; in is_regular_file()
52 if (stat(file, &st)) in is_regular_file()
62 struct stat st; in is_directory()
65 if (stat(path, &st)) in is_directory()
74 struct stat st; in is_executable_file()
77 if (stat(path, &st)) in is_executable_file()
/tools/perf/tests/
Dhists_output.c183 !strcmp(SYM(he), "main") && he->stat.period == 200); in test1()
189 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
195 !strcmp(SYM(he), "main") && he->stat.period == 100); in test1()
201 !strcmp(SYM(he), "xmalloc") && he->stat.period == 100); in test1()
207 !strcmp(SYM(he), "page_fault") && he->stat.period == 100); in test1()
213 !strcmp(SYM(he), "schedule") && he->stat.period == 100); in test1()
219 !strcmp(SYM(he), "free") && he->stat.period == 100); in test1()
225 !strcmp(SYM(he), "malloc") && he->stat.period == 100); in test1()
231 !strcmp(SYM(he), "cmd_record") && he->stat.period == 100); in test1()
282 CPU(he) == 1 && PID(he) == 100 && he->stat.period == 300); in test2()
[all …]
/tools/bootconfig/
Dmain.c153 struct stat stat; in load_xbc_file() local
159 ret = fstat(fd, &stat); in load_xbc_file()
163 ret = load_xbc_fd(fd, buf, stat.st_size); in load_xbc_file()
178 struct stat stat; in load_xbc_from_initrd() local
184 ret = fstat(fd, &stat); in load_xbc_from_initrd()
188 if (stat.st_size < 8 + BOOTCONFIG_MAGIC_LEN) in load_xbc_from_initrd()
213 if (stat.st_size < size + 8 + BOOTCONFIG_MAGIC_LEN) { in load_xbc_from_initrd()
218 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN), in load_xbc_from_initrd()
285 struct stat st; in show_xbc()
287 ret = stat(path, &st); in show_xbc()
[all …]
/tools/testing/selftests/ftrace/test.d/00basic/
Dtest_ownership.tc6 original_group=`stat -c "%g" .`
7 original_owner=`stat -c "%u" .`
31 owner=`stat -c "%u" $file`
32 group=`stat -c "%g" $file`
45 owner=`stat -c "%u" $file`
51 owner=`stat -c "%u" $file`
/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/testing/selftests/proc/
Dproc-multiple-procfs.c25 struct stat proc_st1, proc_st2; in main()
37 assert(!stat(procbuff, &proc_st1)); in main()
40 assert(!stat(procbuff, &proc_st2)); in main()
/tools/net/sunrpc/xdrgen/templates/C/program/decoder/
Dresult.j216 if (result->stat != nfs_ok) {
17 trace_nfs_xdr_status(xdr, (int)result->stat);
18 return {{ program }}_stat_to_errno(result->stat);
/tools/net/ynl/samples/
Dpage-pool.c13 struct stat { struct
26 struct stat *s; argument
29 static struct stat *find_ifc(struct stats_array *a, unsigned int ifindex) in find_ifc()
47 static void count(struct stat *s, unsigned int l, in count()
81 struct stat *s = find_ifc(&a, pp->ifindex); in main()
94 struct stat *s = find_ifc(&a, pp->info.ifindex); in main()
111 struct stat *s = &a.s[i]; in main()
/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()

1234567891011