Lines Matching +full:remote +full:- +full:pid
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright 2021-2022 NXP
13 # https://github.com/vladimiroltean/tsn-scripts
14 # WARNING: isochron versions pre-1.0 are unstable,
28 if ! [ -z "${uds_address}" ]; then
29 extra_args="${extra_args} -z ${uds_address}"
34 chrt -f 10 phc2sys -m \
35 -a -rr \
36 --step_threshold 0.00002 \
37 --first_step_threshold 0.00002 \
42 echo "phc2sys logs to ${phc2sys_log} and has pid ${phc2sys_pid}"
67 local pid="ptp4l_pid_$(if_names_to_label ${if_names})"
71 extra_args="${extra_args} -i ${if_name}"
75 extra_args="${extra_args} -s"
80 declare -g "${log}=$(mktemp)"
82 chrt -f 10 ptp4l -m -2 -P \
83 --step_threshold 0.00002 \
84 --first_step_threshold 0.00002 \
85 --tx_timestamp_timeout 100 \
86 --uds_address="${uds_address}" \
89 declare -g "${pid}=$!"
91 echo "ptp4l for interfaces ${if_names} logs to ${!log} and has pid ${!pid}"
100 local pid="ptp4l_pid_$(if_names_to_label ${if_names})"
102 { kill ${!pid} && wait ${!pid}; } 2> /dev/null
113 if ! [ -d /sys/bus/cpu/devices/cpu${cpu}/cpufreq ]; then
119 declare -g "${freq}=$(cat /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_min_freq)"
120 declare -g "${governor}=$(cat /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_governor)"
124 echo -n "performance" > \
134 if ! [ -d /sys/bus/cpu/devices/cpu${cpu}/cpufreq ]; then
139 echo -n "${!governor}" > \
149 local pid="isochron_pid_${stats_port}"
151 if ! [ -z "${uds}" ]; then
152 extra_args="${extra_args} --unix-domain-socket ${uds}"
156 --interface ${if_name} \
157 --sched-priority 98 \
158 --sched-fifo \
159 --utc-tai-offset ${UTC_TAI_OFFSET} \
160 --stats-port ${stats_port} \
161 --quiet \
163 declare -g "${pid}=$!"
171 local pid="isochron_pid_${stats_port}"
173 { kill ${!pid} && wait ${!pid}; } 2> /dev/null
195 if ! [ -z "${dst_ip}" ]; then
199 if ! [ -z "${vrf}" ]; then
203 if ! [ -z "${vid}" ]; then
204 vid="--vid=${vid}"
207 if [ -z "${receiver_uds}" ]; then
208 extra_args="${extra_args} --omit-remote-sync"
211 if ! [ -z "${shift_time}" ]; then
212 extra_args="${extra_args} --shift-time=${shift_time}"
216 extra_args="${extra_args} --l2 --etype=0xdead ${vid}"
217 receiver_extra_args="--l2 --etype=0xdead"
219 extra_args="${extra_args} --l4 --ip-destination=${dst_ip}"
220 receiver_extra_args="--l4"
228 --interface ${sender_if_name} \
229 --unix-domain-socket ${sender_uds} \
230 --priority ${priority} \
231 --base-time ${base_time} \
232 --cycle-time ${cycle_time} \
233 --num-frames ${num_pkts} \
234 --frame-size 64 \
235 --txtime \
236 --utc-tai-offset ${UTC_TAI_OFFSET} \
237 --cpu-mask $((1 << ${ISOCHRON_CPU})) \
238 --sched-fifo \
239 --sched-priority 98 \
240 --client 127.0.0.1 \
241 --sync-threshold 5000 \
242 --output-file ${isochron_dat} \
244 --quiet