/tools/perf/Documentation/ |
D | security.txt | 13 Targeted policy with perf_event_open() access control capabilities: 15 1. Download selinux-policy SRPM package (e.g. selinux-policy-3.14.4-48.fc31.src.rpm on FC31) 18 # rpm -Uhv selinux-policy-3.14.4-48.fc31.src.rpm 22 # rpmbuild -bp selinux-policy.spec 24 3. Place patch below at rpmbuild/BUILD/selinux-policy-b86eaaf4dbcf2d51dd4432df7185c0eaf3cbcc02 27 # patch -p1 < selinux-policy-perf-events-perfmon.patch 28 patching file policy/flask/access_vectors 29 patching file policy/flask/security_classes 30 # cat selinux-policy-perf-events-perfmon.patch 31 diff -Nura a/policy/flask/access_vectors b/policy/flask/access_vectors [all …]
|
/tools/perf/trace/beauty/ |
D | sched_policy.c | 26 int policy = arg->val, in syscall_arg__scnprintf_sched_policy() local 27 flags = policy & ~SCHED_POLICY_MASK; in syscall_arg__scnprintf_sched_policy() 29 policy &= SCHED_POLICY_MASK; in syscall_arg__scnprintf_sched_policy() 30 if (policy <= SCHED_DEADLINE) in syscall_arg__scnprintf_sched_policy() 31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", policies[policy]); in syscall_arg__scnprintf_sched_policy() 33 printed = scnprintf(bf, size, "%#x", policy); in syscall_arg__scnprintf_sched_policy()
|
/tools/testing/selftests/net/ |
D | xfrm_policy.sh | 39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 82 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block 108 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block 113 …ip -net $ns xfrm policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fw… 123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null 130 ip -net $ns xfrm policy get src $rnet dst $lnet dir fwd > /dev/null 146 ip -net $ns xfrm policy add dst $plain dir out priority 10 action allow [all …]
|
D | l2tp.sh | 234 run_cmd host-1 ip xfrm policy add \ 238 run_cmd host-1 ip xfrm policy add \ 242 run_cmd host-2 ip xfrm policy add \ 246 run_cmd host-2 ip xfrm policy add \ 273 run_cmd host-1 ip -6 xfrm policy add \ 277 run_cmd host-1 ip -6 xfrm policy add \ 281 run_cmd host-2 ip -6 xfrm policy add \ 285 run_cmd host-2 ip -6 xfrm policy add \ 313 run_cmd host-1 ip xfrm policy flush 315 run_cmd host-2 ip xfrm policy flush
|
D | srv6_end_flavors_test.sh | 513 local policy='' 529 policy="${policy}${LOCATOR_SERVICE}:${node}::${END_FUNC}," 535 policy="${policy}${LOCATOR_SERVICE}:${node}::${END_PSP_FUNC}," 560 policy="${policy%,}" 565 encap seg6 mode inline segs "${policy}" \
|
D | vrf-xfrm-tests.sh | 200 for x in state policy 221 ip -netns host1 xfrm policy add \ 226 ip -netns host2 xfrm policy add \ 231 ip -netns host1 xfrm policy add \ 236 ip -netns host2 xfrm policy add \ 242 ip -6 -netns host1 xfrm policy add \ 247 ip -6 -netns host2 xfrm policy add \ 252 ip -6 -netns host1 xfrm policy add \ 257 ip -6 -netns host2 xfrm policy add \
|
D | srv6_hl2encap_red_l2vpn_test.sh | 407 local policy='' 413 policy="${policy}${VPN_LOCATOR_SERVICE}:${n}::${END_FUNC}," 416 policy="${policy}${VPN_LOCATOR_SERVICE}:${dec_rt}::${DX2_FUNC}" 422 encap seg6 mode "${mode}" segs "${policy}" \ 427 encap seg6 mode "${mode}" segs "${policy}" \
|
D | srv6_hencap_red_l3vpn_test.sh | 469 local policy='' 475 policy="${policy}${VPN_LOCATOR_SERVICE}:${n}::${END_FUNC}," 478 policy="${policy}${VPN_LOCATOR_SERVICE}:${dec_rt}::${DT46_FUNC}" 484 encap seg6 mode "${mode}" segs "${policy}" \ 495 encap seg6 mode "${mode}" segs "${policy}" \
|
/tools/power/cpupower/lib/ |
D | cpufreq.c | 238 struct cpufreq_policy *policy; in cpufreq_get_policy() local 240 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy() 241 if (!policy) in cpufreq_get_policy() 244 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in cpufreq_get_policy() 245 if (!policy->governor) { in cpufreq_get_policy() 246 free(policy); in cpufreq_get_policy() 249 policy->min = sysfs_cpufreq_get_one_value(cpu, SCALING_MIN_FREQ); in cpufreq_get_policy() 250 policy->max = sysfs_cpufreq_get_one_value(cpu, SCALING_MAX_FREQ); in cpufreq_get_policy() 251 if ((!policy->min) || (!policy->max)) { in cpufreq_get_policy() 252 free(policy->governor); in cpufreq_get_policy() [all …]
|
D | cpufreq.h | 102 void cpufreq_put_policy(struct cpufreq_policy *policy); 183 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
|
/tools/lib/bpf/ |
D | nlattr.c | 46 struct libbpf_nla_policy *policy) in validate_nla() argument 55 pt = &policy[type]; in validate_nla() 105 int len, struct libbpf_nla_policy *policy) in libbpf_nla_parse() argument 118 if (policy) { in libbpf_nla_parse() 119 err = validate_nla(nla, maxtype, policy); in libbpf_nla_parse() 151 struct libbpf_nla_policy *policy) in libbpf_nla_parse_nested() argument 154 libbpf_nla_len(nla), policy); in libbpf_nla_parse_nested()
|
D | nlattr.h | 124 int len, struct libbpf_nla_policy *policy); 127 struct libbpf_nla_policy *policy);
|
/tools/testing/selftests/amd-pstate/ |
D | run.sh | 74 for policy in $policies; do 75 cur_gov=$(find_current_governor $policy) 76 echo "$policy $cur_gov" >> $OUTFILE.backup_governor.log 87 for policy in $policies; do 92 echo $governor > $CPUFREQROOT/$policy/scaling_governor 102 for policy in $policies; do 103 filepath=$CPUFREQROOT/$policy/scaling_available_governors 110 echo $1 > $CPUFREQROOT/$policy/scaling_governor 214 if apt policy dbench > /dev/null 2>&1; then
|
/tools/net/ynl/lib/ |
D | ynl.c | 48 ynl_err_walk_report_one(struct ynl_policy_nest *policy, unsigned int type, in ynl_err_walk_report_one() argument 51 if (!policy) { in ynl_err_walk_report_one() 57 if (type > policy->max_attr) { in ynl_err_walk_report_one() 63 if (!policy->table[type].name) { in ynl_err_walk_report_one() 71 ".%s", policy->table[type].name); in ynl_err_walk_report_one() 77 struct ynl_policy_nest *policy, char *str, int str_sz, in ynl_err_walk() argument 87 if (!policy) { in ynl_err_walk() 111 if (ynl_err_walk_report_one(policy, type, str, str_sz, &n)) in ynl_err_walk() 116 *nest_pol = policy->table[type].nest; in ynl_err_walk() 120 if (!policy->table[type].nest) { in ynl_err_walk() [all …]
|
/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 59 struct cpufreq_policy *policy; in proc_cpufreq_output() local 68 policy = cpufreq_get_policy(cpu); in proc_cpufreq_output() 69 if (!policy) in proc_cpufreq_output() 75 min_pctg = (policy->min * 100) / max; in proc_cpufreq_output() 76 max_pctg = (policy->max * 100) / max; in proc_cpufreq_output() 79 cpu , policy->min, max ? min_pctg : 0, policy->max, in proc_cpufreq_output() 80 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output() 82 cpufreq_put_policy(policy); in proc_cpufreq_output() 313 struct cpufreq_policy *policy = cpufreq_get_policy(cpu); in get_policy() local 314 if (!policy) { in get_policy() [all …]
|
/tools/testing/selftests/cpufreq/ |
D | cpufreq.sh | 32 for policy in $policies; do 33 $@ $policy 40 for policy in $policies; do 41 $@ $policy &
|
D | special-tests.sh | 68 echo ondemand | sudo tee $CPUFREQROOT/policy*/scaling_governor & 69 echo userspace | sudo tee $CPUFREQROOT/policy*/scaling_governor &
|
/tools/testing/selftests/netfilter/ |
D | nft_queue.sh | 101 type filter hook prerouting priority $prio; policy accept; 105 type filter hook input priority $prio; policy accept; 109 type filter hook forward priority $prio; policy accept; 114 type filter hook output priority $prio; policy accept; 120 type filter hook postrouting priority $prio; policy accept; 133 type filter hook prerouting priority $prio; policy accept; 137 type filter hook input priority $prio; policy accept; 141 type filter hook forward priority $prio; policy accept; 145 type filter hook output priority $prio; policy accept; 149 type filter hook postrouting priority $prio; policy accept; [all …]
|
D | conntrack_icmp_related.sh | 137 type filter hook forward priority 0; policy accept; 154 type filter hook input priority 0; policy accept; 174 type filter hook input priority 0; policy accept; 182 type filter hook output priority 0; policy accept; 199 type nat hook postrouting priority 0; policy accept; 205 type nat hook postrouting priority 0; policy accept;
|
D | nft_nat.sh | 187 type nat hook output priority 0; policy accept; 262 type nat hook output priority 0; policy accept; 388 type nat hook output priority 0; policy accept; 455 type nat hook postrouting priority 0; policy accept; 556 type nat hook postrouting priority 0; policy accept; 655 type nat hook prerouting priority 0; policy accept; 737 type nat hook prerouting priority 0; policy accept; 842 type filter hook forward priority 0; policy accept; 860 type filter hook prerouting priority -300; policy accept; 864 type filter hook output priority -300; policy accept; [all …]
|
D | nft_flowtable.sh | 170 type filter hook forward priority 0; policy drop; 197 type filter hook input priority 0; policy accept; 409 type filter hook ingress device "veth0" priority 0; policy accept 426 type filter hook egress device "veth1" priority 0; policy accept 505 type nat hook prerouting priority 0; policy accept; 510 type nat hook postrouting priority 0; policy accept; 563 type nat hook prerouting priority 0; policy accept; 568 type nat hook postrouting priority 0; policy accept; 647 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 649 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
|
/tools/testing/selftests/kvm/include/ |
D | numaif.h | 20 long get_mempolicy(int *policy, const unsigned long *nmask, in get_mempolicy() argument 23 return syscall(__NR_get_mempolicy, policy, nmask, in get_mempolicy()
|
/tools/net/ynl/generated/ |
D | netdev-user.c | 185 .policy = &netdev_dev_nest, 191 .policy = &netdev_dev_nest, 197 .policy = &netdev_dev_nest,
|
/tools/testing/selftests/net/forwarding/ |
D | ip6_forward_instats_vrf.sh | 151 ip xfrm policy add dst 2001:1:2::2/128 dir fwd action block 154 ip xfrm policy del dst 2001:1:2::2/128 dir fwd
|
/tools/testing/selftests/futex/functional/ |
D | futex_requeue_pi_signal_restart.c | 50 int policy, int prio) in create_rt_thread() argument 65 ret = pthread_attr_setschedpolicy(&attr, policy); in create_rt_thread()
|