aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/benchmark_rate.cpp
Commit message (Collapse)AuthorAgeFilesLines
* uhd: mpm: apply clang-format to all filesBrent Stapleton2019-01-161-294/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying formatting changes to all .cpp and .hpp files in the following directories: ``` find host/examples/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/tests/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/utils/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find mpm/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Also formatted host/include/, except Cpp03 was used as a the language standard instead of Cpp11. ``` sed -i 's/ Cpp11/ Cpp03/g' .clang-format find host/include/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Formatting style was designated by the .clang-format file.
* examples: utils: skip formatting program optionsBrent Stapleton2019-01-161-0/+2
| | | | | | Turning off clang formatting around the program option declarations. clang-format makes them looks bad an unreadable because it thinks the options are function calls or something.
* examples: optimize benchmark_rate start timeBrent Stapleton2019-01-031-3/+3
| | | | | | | | Move the setting of the streaming start times back as late as possible. Currently, there are memory allocations in between setting the time_spec in the TX metadata and actually starting streaming. This will lessen the need for an INIT_DELAY and decrease the probability of late packets.
* utils: fix bmark_rate MIMO synchronizationBrent Stapleton2018-10-121-9/+10
| | | | | | | | | | Fix USRP2 MIMO synchronization in benchmark_rate. When synchronizing N2XXs connected with a MIMO cable, only the master's time needs to be set; the slave will be synchronized automatically. Currently, calling set_time_unknown_pps will attempt to synchronize the slave on the next PPS, which can cause problems since the MIMO cable doesn't propogate a PPS signal.
* examples: Avoid calculating dropped samples for negative offsetsMartin Braun2018-05-031-1/+10
| | | | | | | | | | | | There are cases when the first sample after an overrun has an earlier timestamp than the timestamp of the error package. In this case, benchmark_rate would incorrectly determine the number of dropped samples, causing it to display a very large number. This is not a fix of the negative offset issue, but will avoid displaying overly pessimistic numbers dropped samples. An error message is still displayed when this happens, which aids in debugging this situation.
* examples: Fix sleep duration in benchmark_rateMartin Braun2018-05-031-1/+1
| | | | | | The main thread sleeps while the receiver and transmitter threads are going on. This fixes the calculated time it takes in single-channel scenarios.
* examples: Add failure modes to benchmark_rateMartin Braun2018-05-031-20/+86
| | | | | | | | | | | When too many overruns, underruns, or dropped packets are detected, benchmark_rate will now return EXIT_FAILURE. This allows to use it for automated tests. The thresholds are set very high by default, but can be manually tuned by using new command line arguments: $ benchmark_rate --overrun-threshold 0 # Fail on any number of Os
* examples: Update benchmark_rate (more stats, timestamps)Martin Braun2018-03-141-57/+111
| | | | | | | | - Messages are all timestamped, enables better understanding of the output log - Less usage of Boost - More stats (differentiate between RX and TX timeouts and sequence errors)
* examples: Fix some minor compiler warningsMartin Braun2018-02-191-4/+7
| | | | All warnings reported by MSVC. Mostly related to narrowing conversions.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-291-4/+7
|
* uhd: Replaced many lexical_cast with appropriate C++11 equivalentsMartin Braun2017-06-291-5/+4
|
* examples: Fixed check for setting time on PPS vs. nowMartin Braun2016-09-281-1/+6
|
* examples: Added TX and RX channels args in benchmark_rateDerek Kozel2016-08-291-13/+40
|
* examples: Remove default values for subdevs in benchmark_rateMartin Braun2016-08-031-2/+2
|
* examples: Added tx and rx subdev arguments to benchmark_rateDerek Kozel2016-08-031-0/+12
|
* examples: Fixed unconditional wait for SISO case in benchmark_rateMartin Braun2016-07-221-1/+1
|
* examples: Added late command counter to benchmark_rateMartin Braun2016-07-221-4/+17
|
* examples: Fix RX thread in benchmark_rate example so it exits when EOB is seenmichael-west2016-07-221-2/+8
|
* Merge branch 'maint'Martin Braun2016-05-191-2/+3
|\
| * examples: Increased the reference locking timeout in benchmark_ratePaul David2016-05-171-2/+3
| |
| * examples: Re-enabled better thread interruption in benchmark_rateMartin Braun2016-03-171-32/+126
| | | | | | | | | | | | | | The previous version (using atomic variables) was fine, but didn't work with all the Boost versions we currently support on the 3.9.X release line. This is a slightly less safe, but still sufficient example.
| * Revert "examples: Modified benchmark_rate so thread interrupts cannot cause ↵Martin Braun2016-03-161-120/+32
| | | | | | | | | | | | problems" This reverts commit 8930d853f3ee2ac91fc7fd6b41046ca972da3c3f.
| * examples: Modified benchmark_rate so thread interrupts cannot cause problemsMartin Braun2016-03-141-32/+120
| |
* | examples: Add timeouts to benchmark_rateMartin Braun2016-03-211-1/+10
| |
* | examples: Re-enabled better thread interruption in benchmark_rateMartin Braun2016-03-211-32/+126
| | | | | | | | | | | | | | The previous version (using atomic variables) was fine, but didn't work with all the Boost versions we currently support on the 3.9.X release line. This is a slightly less safe, but still sufficient example.
* | Revert "examples: Modified benchmark_rate so thread interrupts cannot cause ↵Martin Braun2016-03-211-120/+32
| | | | | | | | | | | | problems" This reverts commit 8930d853f3ee2ac91fc7fd6b41046ca972da3c3f.
* | examples: Modified benchmark_rate so thread interrupts cannot cause problemsMartin Braun2016-03-211-32/+120
|/
* Corrected the UHD behavior in the event of a USB disconnectDaulPavid2016-02-121-0/+6
|
* Fixed master-specific warningsNicholas Corgan2015-03-271-1/+1
| | | | | * MinGW: unused parameter warning, MSVC-specific pragma * MSVC: bool narrowing
* examples: Merged benchmark_rate and transport_hammerMartin Braun2014-11-131-13/+51
|
* examples: Whitespace and other cleanupMartin Braun2014-10-281-1/+0
|
* OctoClock firmware upgrade, added host driverNicholas Corgan2014-07-231-1/+1
| | | | | | | | | | * OctoClock can communicate with UHD over Ethernet * Can read NMEA strings from GPSDO and send to host * Added multi_usrp_clock class for clock devices * uhd::device can now filter to return only USRP devices or clock devices * New OctoClock bootloader can accept firmware download over Ethernet * Added octoclock_burn_eeprom,octoclock_firmware_burner utilities * Added test_clock_synch example to show clock API
* uhd: Added nicer error reporting to rx examplesMartin Braun2014-04-101-1/+1
|
* Merging USRP X300 and X310 support!!Ben Hilburn2014-02-041-6/+18
|
* examples: changed examples that force usage of all channels to allow user to ↵Nicholas Corgan2013-08-261-5/+19
| | | | input which channels to use
* uhd: benchmark use builtin samp calculationJosh Blum2013-08-201-3/+1
|
* uhd: dont handle multi-chan overflow recovery hereJosh Blum2013-07-191-8/+3
|
* uhd: added new calls to streamer object + support workJosh Blum2013-07-151-29/+33
| | | | | | | * The transmit streamer gives access to the async msg queue. * The receive streamer gives access to the issue stream cmd. * Supporting usrp implementation files updated. * Example applications updated to use this API.
* examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectivelyMoritz Fischer2012-10-261-1/+2
| | | | instead of 0 and 1.
* examples: added multi-channel and host format options to benchmarkJosh Blum2012-04-131-16/+41
|
* dsp rework: added otw mode for benchmark appJosh Blum2012-02-031-6/+9
|
* uhd: renamed some of the stream types and functionsJosh Blum2011-11-031-4/+4
|
* uhd: updated examples to use new streamer interfaceJosh Blum2011-11-031-16/+15
|
* uhd: benchmark example will print help if no rate specifiedJosh Blum2011-07-081-1/+1
|
* uhd: on e100, this benchmark control thread should also have prio so it can ↵Josh Blum2011-06-171-0/+1
| | | | spawn both
* e100: implemented spi, i2c, messages w/ peek/pokeJosh Blum2011-06-171-16/+20
| | | | | | | | spi and i2c are done w/ polling, but this is ok, the transactions always complete by the first check a gpio is used to wake up poll() and check for messages. messages are read using poke32, unpacked, and enqueued.
* uhd: more benchmark tweaks, removed old benchmark rxJosh Blum2011-06-151-7/+9
|
* uhd: added dropped samples calculation to rx testJosh Blum2011-06-151-1/+13
|