Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test binary for measuring device throughput on Ubuntu. #25

Merged
merged 6 commits into from
Jun 1, 2016

Conversation

130s
Copy link
Contributor

@130s 130s commented Apr 5, 2016

Adding test-com_throughput.c that is based on Modifying test-com.cto measure the throughput of 1) device access and 2) communication between driver and a client program to the driver.
Also add an installation rule for it.

@130s 130s merged commit 5d7f472 into tork-a:master Jun 1, 2016
@130s 130s deleted the add/speedtest branch June 1, 2016 02:57
gettimeofday(&fscan1, NULL);
printf("sscanf, sprintf took %7.3f [msec]\n", DELTA_SEC(fscan0, fscan1) * 1000);

fprintf(stderr, str);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build is failing on ROS buildfarm (e.g.):

15:08:55 [ 80%] Building C object CMakeFiles/dynpick_com_tester.dir/src/test-com.c.o
15:08:55 /usr/lib/ccache/x86_64-linux-gnu-gcc  -DROSCONSOLE_BACKEND_LOG4CXX -DROS_PACKAGE_NAME=\"dynpick_driver\" -I/opt/ros/kinetic/include  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -o CMakeFiles/dynpick_com_tester.dir/src/test-com.c.o   -c /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c: In function ‘main’:
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c:126:2: warning: implicit declaration of function ‘SetComAttr’ [-Wimplicit-function-declaration]
15:08:55   SetComAttr(fd);
15:08:55   ^
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c:201:18: error: format not a string literal and no format arguments [-Werror=format-security]
15:08:55    fprintf(stderr, str);
15:08:55                   ^
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c:210:11: error: format not a string literal and no format arguments [-Werror=format-security]
15:08:55     printf(str);
15:08:55            ^
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c:226:2: warning: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
15:08:55   exit(0);   //scanf("%s", str);
15:08:55   ^
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c:226:2: warning: incompatible implicit declaration of built-in function ‘exit’
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c:226:2: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
15:08:55 /tmp/binarydeb/ros-kinetic-dynpick-driver-0.0.10/src/test-com.c:93:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
15:08:55   scanf("%d", &comNo);
15:08:55   ^
15:08:55 cc1: some warnings being treated as errors
15:08:55 make[4]: *** [CMakeFiles/dynpick_com_tester.dir/src/test-com.c.o] Error 1
15:08:55 CMakeFiles/dynpick_com_tester.dir/build.make:65: recipe for target 'CMakeFiles/dynpick_com_tester.dir/src/test-com.c.o' failed
15:08:55 make[3]: *** [CMakeFiles/dynpick_com_tester.dir/all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant