/tools/perf/util/ |
D | tsc.c | 7 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) in perf_time_to_tsc() argument 11 t = ns - tc->time_zero; in perf_time_to_tsc() 12 quot = t / tc->time_mult; in perf_time_to_tsc() 13 rem = t % tc->time_mult; in perf_time_to_tsc() 14 return (quot << tc->time_shift) + in perf_time_to_tsc() 15 (rem << tc->time_shift) / tc->time_mult; in perf_time_to_tsc() 18 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument 22 quot = cyc >> tc->time_shift; in tsc_to_perf_time() 23 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time() 24 return tc->time_zero + quot * tc->time_mult + in tsc_to_perf_time() [all …]
|
D | term.c | 32 struct termios tc; in set_term_quiet_input() local 35 tc = *old; in set_term_quiet_input() 36 tc.c_lflag &= ~(ICANON | ECHO); in set_term_quiet_input() 37 tc.c_cc[VMIN] = 0; in set_term_quiet_input() 38 tc.c_cc[VTIME] = 0; in set_term_quiet_input() 39 tcsetattr(0, TCSANOW, &tc); in set_term_quiet_input()
|
D | tsc.h | 16 struct perf_tsc_conversion *tc); 18 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc); 19 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
|
/tools/testing/selftests/net/forwarding/ |
D | tc_flower.sh | 26 tc qdisc add dev $h2 clsact 31 tc qdisc del dev $h2 clsact 41 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 43 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 55 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 56 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 67 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 69 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 82 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower [all …]
|
D | tc_chains.sh | 25 tc qdisc add dev $h2 clsact 30 tc qdisc del dev $h2 clsact 38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ [all …]
|
D | tc_actions.sh | 25 tc qdisc add dev $h2 clsact 30 tc qdisc del dev $h2 clsact 37 tc qdisc add dev $swp1 clsact 46 tc qdisc del dev $swp1 clsact 56 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 65 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 75 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 85 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 94 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ [all …]
|
D | tc_shblocks.sh | 34 tc qdisc add dev $swp1 ingress_block 22 egress_block 23 clsact 37 tc qdisc add dev $swp2 ingress_block 22 egress_block 23 clsact 42 tc qdisc del dev $swp2 clsact 45 tc qdisc del dev $swp1 clsact 53 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 68 tc filter del block 22 protocol ip pref 1 handle 101 flower 77 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 79 tc filter add block 22 protocol ip pref 2 handle 102 flower \ 94 tc filter del block 22 protocol ip pref 1 handle 101 flower 95 tc filter del block 22 protocol ip pref 2 handle 102 flower
|
D | router_multicast.sh | 50 tc qdisc add dev $h1 ingress 55 tc qdisc del dev $h1 ingress 76 tc qdisc add dev $h2 ingress 81 tc qdisc del dev $h2 ingress 102 tc qdisc add dev $h3 ingress 107 tc qdisc del dev $h3 ingress 132 tc qdisc add dev $rp3 ingress 137 tc qdisc del dev $rp3 ingress 240 tc filter add dev $h2 ingress protocol ip pref 1 handle 122 flower \ 242 tc filter add dev $h3 ingress protocol ip pref 1 handle 133 flower \ [all …]
|
D | devlink_lib.sh | 170 local tc=$1; shift 173 devlink sb tc bind show $port tc $tc type $dir -j \ 180 local tc=$1; shift 184 local key="tc_bind($port,$dir,$tc).pool_th" 186 DEVLINK_ORIG[$key]=$(devlink_tc_bind_pool_th $port $tc $dir) 187 devlink sb tc bind set $port tc $tc type $dir pool $pool th $th 193 local tc=$1; shift 195 local key="tc_bind($port,$dir,$tc).pool_th" 198 devlink sb tc bind set $port tc $tc type $dir \
|
D | tc_vlan_modify.sh | 54 tc qdisc add dev $swp1 clsact 55 tc qdisc add dev $swp2 clsact 60 tc qdisc del dev $swp2 clsact 61 tc qdisc del dev $swp1 clsact 113 tc filter add dev $swp1 ingress protocol all pref 1 handle 1 \ 115 tc filter add dev $swp2 ingress protocol all pref 1 handle 1 \ 126 tc filter del dev $swp2 ingress protocol all pref 1 handle 1 flower 127 tc filter del dev $swp1 ingress protocol all pref 1 handle 1 flower 140 tc filter add dev $swp1 egress protocol all pref 1 handle 1 \ 142 tc filter add dev $swp2 egress protocol all pref 1 handle 1 \ [all …]
|
D | mirror_topo_lib.sh | 49 tc qdisc add dev $h3 clsact 54 tc qdisc del dev $h3 clsact 71 tc qdisc add dev $swp1 clsact 76 tc qdisc del dev $swp1 clsact
|
D | loopback.sh | 15 tc qdisc add dev $h1 clsact 20 tc qdisc del dev $h1 clsact 38 tc filter add dev $h1 ingress protocol arp pref 1 handle 101 flower \ 64 tc filter del dev $h1 ingress protocol arp pref 1 handle 101 flower
|
D | lib.sh | 36 tc -j &> /dev/null 45 tc filter help 2>&1 | grep block &> /dev/null 54 tc help 2>&1|grep chain &> /dev/null 528 tc -j -s filter show dev $dev ${dir:-ingress} pref $pref \ 629 tc filter add dev $dev $direction pref 1 \ 631 || tc filter add dev $dev $direction pref 1 \ 640 tc filter del dev $dev $direction pref 1 flower 667 tc filter $add_del dev "$tundev" ingress \ 700 tc filter $add_del dev "$dev" ingress \ 762 tc qdisc add dev $dev clsact [all …]
|
D | mirror_gre_bridge_1q_lag.sh | 109 tc qdisc add dev $h3 clsact 114 tc qdisc del dev $h3 clsact 121 tc qdisc add dev $h4 clsact 126 tc qdisc del dev $h4 clsact 133 tc qdisc add dev $swp1 clsact 169 tc qdisc del dev $swp1 clsact 227 tc filter add dev $swp1 ingress pref 999 \ 251 tc filter del dev $swp1 ingress pref 999
|
/tools/perf/arch/x86/util/ |
D | tsc.c | 16 struct perf_tsc_conversion *tc) in perf_read_tsc_conversion() argument 25 tc->time_mult = pc->time_mult; in perf_read_tsc_conversion() 26 tc->time_shift = pc->time_shift; in perf_read_tsc_conversion() 27 tc->time_zero = pc->time_zero; in perf_read_tsc_conversion() 66 struct perf_tsc_conversion tc; in perf_event__synth_time_conv() local 71 err = perf_read_tsc_conversion(pc, &tc); in perf_event__synth_time_conv() 79 event.time_conv.time_mult = tc.time_mult; in perf_event__synth_time_conv() 80 event.time_conv.time_shift = tc.time_shift; in perf_event__synth_time_conv() 81 event.time_conv.time_zero = tc.time_zero; in perf_event__synth_time_conv()
|
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
D | tc_flower.sh | 35 tc qdisc add dev $h2 clsact 40 tc qdisc del dev $h2 clsact 101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \ [all …]
|
/tools/testing/selftests/kvm/x86_64/ |
D | mmio_warning_test.c | 41 struct thread_context *tc = (struct thread_context *)arg; in thr() local 43 int kvmcpu = tc->kvmcpu; in thr() 44 struct kvm_run *run = tc->run; in thr() 58 struct thread_context tc; in test() local 68 tc.kvmcpu = kvmcpu; in test() 69 tc.run = run; in test() 72 pthread_create(&th[i], NULL, thr, (void *)(uintptr_t)&tc); in test()
|
/tools/testing/selftests/drivers/net/mlxsw/ |
D | one_armed_router.sh | 94 tc qdisc add dev $swp1 clsact 95 tc qdisc add dev $swp2 clsact 106 tc qdisc del dev $swp2 clsact 107 tc qdisc del dev $swp1 clsact 134 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 138 tc filter add dev $swp2 egress protocol ip pref 1 handle 101 flower \ 142 tc filter add dev $swp2 egress protocol ip pref 2 handle 102 flower \ 170 tc filter del dev $swp2 egress protocol ip pref 2 handle 102 flower 171 tc filter del dev $swp2 egress protocol ip pref 1 handle 101 flower 172 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower [all …]
|
D | tc_flower_scale.sh | 15 tc qdisc add dev $h1 clsact 20 tc qdisc del dev $h1 clsact 27 tc qdisc add dev $h2 clsact 32 tc qdisc del dev $h2 clsact 85 tc -b $TC_FLOWER_BATCH_FILE 104 tc -j -s filter show dev $h2 ingress |
|
D | vxlan_flooding.sh | 177 tc qdisc add dev br0 clsact 178 tc filter add dev br0 egress protocol all pref 1 handle 1 \ 180 tc qdisc add dev $h1 clsact 181 tc filter add dev $h1 egress protocol all pref 1 handle 1 \ 183 tc filter add dev $h1 egress protocol all pref 2 handle 2 \ 186 tc qdisc add dev $rp2 clsact 191 tc filter add dev $rp2 ingress protocol ip pref $i handle $i \ 203 tc filter del dev $rp2 ingress protocol ip pref $i \ 207 tc qdisc del dev $rp2 clsact 209 tc filter del dev $h1 egress protocol all pref 2 handle 2 matchall [all …]
|
D | blackhole_routes.sh | 88 tc qdisc add dev $rp1 clsact 99 tc qdisc del dev $rp1 clsact 122 tc filter add dev $rp1 ingress protocol ip pref 1 handle 101 flower \ 137 tc filter del dev $rp1 ingress protocol ip pref 1 handle 101 flower 146 tc filter add dev $rp1 ingress protocol ipv6 pref 1 handle 101 flower \ 161 tc filter del dev $rp1 ingress protocol ipv6 pref 1 handle 101 flower
|
/tools/testing/selftests/bpf/ |
D | test_flow_dissector.sh | 37 tc filter del dev lo ingress pref 1337 2> /dev/null 38 tc qdisc del dev lo ingress 2> /dev/null 65 tc qdisc add dev lo ingress 72 tc filter add dev lo parent ffff: protocol ip pref 1337 flower ip_proto \ 104 tc filter del dev lo ingress pref 1337 108 tc filter add dev lo parent ffff: protocol ipv6 pref 1337 flower ip_proto \
|
D | test_tcp_check_syncookie.sh | 59 ns1_exec tc qdisc add dev "${TEST_IF}" clsact 60 ns1_exec tc filter add dev "${TEST_IF}" ingress \ 63 BPF_PROG_ID=$(ns1_exec tc filter show dev "${TEST_IF}" ingress | \ 66 ns1_exec tc qdisc del dev "${TEST_IF}" clsact
|
D | test_skb_cgroup_id.sh | 32 tc qdisc add dev ${TEST_IF} clsact 33 tc filter add dev ${TEST_IF} egress bpf obj ${BPF_PROG_OBJ} \ 36 BPF_PROG_ID=$(tc filter show dev ${TEST_IF} egress | \
|
/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.sh | 11 tc qdisc add dev lo root netem delay 1ms 17 tc qdisc add dev ifb_netem0 root netem delay 2ms 20 tc qdisc add dev lo handle ffff: ingress 21 tc filter add dev lo parent ffff: \
|