Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
73f4a675
Commit
73f4a675
authored
Sep 28, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change software-pps name to software-pulse
parent
07ffe167
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
17 deletions
+17
-17
.gitignore
.gitignore
+1
-1
scripts/kill-test-board-synchro
scripts/kill-test-board-synchro
+3
-3
scripts/run-software-pulse
scripts/run-software-pulse
+8
-8
software-pulse/build/Makefile
software-pulse/build/Makefile
+2
-2
software-pulse/src/common.c
software-pulse/src/common.c
+0
-0
software-pulse/src/common.h
software-pulse/src/common.h
+0
-0
software-pulse/src/gpio.c
software-pulse/src/gpio.c
+0
-0
software-pulse/src/gpio.h
software-pulse/src/gpio.h
+0
-0
software-pulse/src/pulse.c
software-pulse/src/pulse.c
+0
-0
software-pulse/src/pulse.h
software-pulse/src/pulse.h
+0
-0
software-pulse/src/software-pulse.c
software-pulse/src/software-pulse.c
+3
-3
No files found.
.gitignore
View file @
73f4a675
...
@@ -8,7 +8,7 @@ clockres/build/clockres_arm
...
@@ -8,7 +8,7 @@ clockres/build/clockres_arm
packet-exchange/build/server
packet-exchange/build/server
packet-exchange/build/client
packet-exchange/build/client
gettime/build/gettime
gettime/build/gettime
software-p
ps/build/software-pps
software-p
ulse/build/software-pulse
test-ptp/build/server
test-ptp/build/server
test-ptp/build/client
test-ptp/build/client
...
...
scripts/kill-test-board-synchro
View file @
73f4a675
...
@@ -5,7 +5,7 @@ script_dir=$(dirname $(realpath $0))
...
@@ -5,7 +5,7 @@ script_dir=$(dirname $(realpath $0))
usage
()
{
usage
()
{
cat
<<
ENDUSAGE
cat
<<
ENDUSAGE
Usage:
$0
[-h] BOARD1_HOSTNAME BOARD2_HOSTNAME
Usage:
$0
[-h] BOARD1_HOSTNAME BOARD2_HOSTNAME
Kills all processes started by test-board-synchro (clients, servers, software-p
ps
)
Kills all processes started by test-board-synchro (clients, servers, software-p
ulse
)
-h Show help
-h Show help
BOARD_HOSTNAME Uses /etc/hosts to find the IP address associated to the hostname
BOARD_HOSTNAME Uses /etc/hosts to find the IP address associated to the hostname
ENDUSAGE
ENDUSAGE
...
@@ -36,5 +36,5 @@ board2=$2
...
@@ -36,5 +36,5 @@ board2=$2
killall client
;
killall client
;
killall run-client
;
killall run-client
;
$script_dir
/sudossh
$board1
"killall server software-p
ps
"
;
$script_dir
/sudossh
$board1
"killall server software-p
ulse
"
;
$script_dir
/sudossh
$board2
"killall server software-p
ps
"
;
$script_dir
/sudossh
$board2
"killall server software-p
ulse
"
;
scripts/run-software-p
ps
→
scripts/run-software-p
ulse
View file @
73f4a675
...
@@ -30,13 +30,13 @@ while getopts "hi:gt:P:" opt; do
...
@@ -30,13 +30,13 @@ while getopts "hi:gt:P:" opt; do
interval
=
${
OPTARG
}
interval
=
${
OPTARG
}
;;
;;
g
)
g
)
p
ps
_opts+
=
" -g "
p
ulse
_opts+
=
" -g "
;;
;;
t
)
t
)
ts_offset
=
${
OPTARG
}
ts_offset
=
${
OPTARG
}
;;
;;
P
)
P
)
p
ps
_opts+
=
" -P
${
OPTARG
}
"
p
ulse
_opts+
=
" -P
${
OPTARG
}
"
;;
;;
*
)
*
)
usage
usage
...
@@ -57,10 +57,10 @@ ts=$($script_dir/get-ptp-time -m $ts_offset)
...
@@ -57,10 +57,10 @@ ts=$($script_dir/get-ptp-time -m $ts_offset)
echo
"Timestamp:
$ts
"
;
echo
"Timestamp:
$ts
"
;
ssh
$board1
"cd tsn-measures/software-p
ps
/build;make"
;
ssh
$board1
"cd tsn-measures/software-p
ulse
/build;make"
;
echo
"
$script_dir
/exec-ssh-nohup
$board1
\"
tsn-measures/software-p
ps/build/software-pps -a1 -p97 -i
$interval
$pps
_opts
-s
$ts
\"
"
server_log
;
echo
"
$script_dir
/exec-ssh-nohup
$board1
\"
tsn-measures/software-p
ulse/build/software-pulse -a1 -p97 -i
$interval
$pulse
_opts
-s
$ts
\"
"
server_log
;
$script_dir
/exec-ssh-nohup
$board1
"tsn-measures/software-p
ps/build/software-pps -a1 -p97 -i
$interval
$pps
_opts
-s
$ts
"
server_log
;
$script_dir
/exec-ssh-nohup
$board1
"tsn-measures/software-p
ulse/build/software-pulse -a1 -p97 -i
$interval
$pulse
_opts
-s
$ts
"
server_log
;
ssh
$board2
"cd tsn-measures/software-p
ps
/build;make"
;
ssh
$board2
"cd tsn-measures/software-p
ulse
/build;make"
;
echo
"
$script_dir
/exec-ssh-nohup
$board2
\"
tsn-measures/software-p
ps/build/software-pps -a1 -p97 -i
$interval
$pps
_opts
-s
$ts
\"
"
server_log
;
echo
"
$script_dir
/exec-ssh-nohup
$board2
\"
tsn-measures/software-p
ulse/build/software-pulse -a1 -p97 -i
$interval
$pulse
_opts
-s
$ts
\"
"
server_log
;
$script_dir
/exec-ssh-nohup
$board2
"tsn-measures/software-p
ps/build/software-pps -a1 -p97 -i
$interval
$pps
_opts
-s
$ts
"
server_log
;
$script_dir
/exec-ssh-nohup
$board2
"tsn-measures/software-p
ulse/build/software-pulse -a1 -p97 -i
$interval
$pulse
_opts
-s
$ts
"
server_log
;
software-p
ps
/build/Makefile
→
software-p
ulse
/build/Makefile
View file @
73f4a675
PROG
=
software-p
ps
PROG
=
software-p
ulse
SRCDIR
=
../src
SRCDIR
=
../src
SRCS
=
software-p
ps
.c
SRCS
=
software-p
ulse
.c
SRCS
+=
common.c
SRCS
+=
common.c
SRCS
+=
pulse.c
SRCS
+=
pulse.c
SRCS
+=
gpio.c
SRCS
+=
gpio.c
...
...
software-p
ps
/src/common.c
→
software-p
ulse
/src/common.c
View file @
73f4a675
File moved
software-p
ps
/src/common.h
→
software-p
ulse
/src/common.h
View file @
73f4a675
File moved
software-p
ps
/src/gpio.c
→
software-p
ulse
/src/gpio.c
View file @
73f4a675
File moved
software-p
ps
/src/gpio.h
→
software-p
ulse
/src/gpio.h
View file @
73f4a675
File moved
software-p
ps
/src/pulse.c
→
software-p
ulse
/src/pulse.c
View file @
73f4a675
File moved
software-p
ps
/src/pulse.h
→
software-p
ulse
/src/pulse.h
View file @
73f4a675
File moved
software-p
ps/src/software-pps
.c
→
software-p
ulse/src/software-pulse
.c
View file @
73f4a675
...
@@ -91,7 +91,7 @@ static void poll_wakeup(struct timespec ts, int margin) {
...
@@ -91,7 +91,7 @@ static void poll_wakeup(struct timespec ts, int margin) {
/*
/*
* Real-time thread:
* Real-time thread:
*/
*/
static
void
*
p
ps
_thread
(
void
*
p
)
{
static
void
*
p
ulse
_thread
(
void
*
p
)
{
(
void
)
p
;
(
void
)
p
;
struct
timespec
next
;
struct
timespec
next
;
int
ret
;
int
ret
;
...
@@ -212,8 +212,8 @@ int main(int argc, char *argv[]) {
...
@@ -212,8 +212,8 @@ int main(int argc, char *argv[]) {
}
}
// Create the real time thread
// Create the real time thread
if
(
pthread_create
(
&
thread
,
&
attr
,
p
ps
_thread
,
NULL
))
if
(
pthread_create
(
&
thread
,
&
attr
,
p
ulse
_thread
,
NULL
))
error
(
EXIT_FAILURE
,
errno
,
"Couldn't create p
ps
thread"
);
error
(
EXIT_FAILURE
,
errno
,
"Couldn't create p
ulse
thread"
);
// Verbose loop
// Verbose loop
for
(;;)
{
for
(;;)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment