aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/super_send_packet_handler.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-08-20 10:00:47 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:16:25 -0800
commit7d69dcdcc318ccdf87038b732acbf2bf7c087b60 (patch)
tree8179f2f4a14be591d7c856f77f13687b45f9a454 /host/lib/transport/super_send_packet_handler.hpp
parent1ac6e6f56100a7e8186481ab0715937759f52737 (diff)
downloaduhd-7d69dcdcc318ccdf87038b732acbf2bf7c087b60.tar.gz
uhd-7d69dcdcc318ccdf87038b732acbf2bf7c087b60.tar.bz2
uhd-7d69dcdcc318ccdf87038b732acbf2bf7c087b60.zip
Remove proto-RFNoC files
This commit removes all files and parts of files that are used by proto-RFNoC only. uhd: Fix include CMakeLists.txt, add missing files
Diffstat (limited to 'host/lib/transport/super_send_packet_handler.hpp')
-rw-r--r--host/lib/transport/super_send_packet_handler.hpp78
1 files changed, 0 insertions, 78 deletions
diff --git a/host/lib/transport/super_send_packet_handler.hpp b/host/lib/transport/super_send_packet_handler.hpp
index af6ecaa5e..cd707cb89 100644
--- a/host/lib/transport/super_send_packet_handler.hpp
+++ b/host/lib/transport/super_send_packet_handler.hpp
@@ -18,22 +18,12 @@
#include <uhd/utils/byteswap.hpp>
#include <uhd/utils/tasks.hpp>
#include <uhd/utils/thread.hpp>
-#include <uhdlib/rfnoc/tx_stream_terminator.hpp>
#include <boost/function.hpp>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
-#ifdef UHD_TXRX_DEBUG_PRINTS
-// Included for debugging
-# include "boost/date_time/posix_time/posix_time.hpp"
-# include <boost/format.hpp>
-# include <boost/thread/thread.hpp>
-# include <fstream>
-# include <map>
-#endif
-
namespace uhd { namespace transport { namespace sph {
/***********************************************************************
@@ -240,9 +230,6 @@ public:
size_t nsamps_sent =
send_one_packet(buffs, nsamps_per_buff, if_packet_info, timeout);
-#ifdef UHD_TXRX_DEBUG_PRINTS
- dbg_print_send(nsamps_per_buff, nsamps_sent, metadata, timeout);
-#endif
return nsamps_sent;
}
size_t total_num_samps_sent = 0;
@@ -281,10 +268,6 @@ public:
if_packet_info,
timeout,
total_num_samps_sent * _bytes_per_cpu_item);
-#ifdef UHD_TXRX_DEBUG_PRINTS
- dbg_print_send(nsamps_per_buff, nsamps_sent, metadata, timeout);
-
-#endif
return nsamps_sent;
}
@@ -314,67 +297,6 @@ private:
bool _cached_metadata;
uhd::tx_metadata_t _metadata_cache;
-#ifdef UHD_TXRX_DEBUG_PRINTS
- struct dbg_send_stat_t
- {
- dbg_send_stat_t(long wc,
- size_t nspb,
- size_t nss,
- uhd::tx_metadata_t md,
- double to,
- double rate)
- : wallclock(wc)
- , nsamps_per_buff(nspb)
- , nsamps_sent(nss)
- , metadata(md)
- , timeout(to)
- , samp_rate(rate)
- {
- }
- long wallclock;
- size_t nsamps_per_buff;
- size_t nsamps_sent;
- uhd::tx_metadata_t metadata;
- double timeout;
- double samp_rate;
- // Create a formatted print line for all the info gathered in this struct.
- std::string print_line()
- {
- boost::format fmt("send,%ld,%f,%i,%i,%s,%s,%s,%ld");
- fmt % wallclock;
- fmt % timeout % (int)nsamps_per_buff % (int)nsamps_sent;
- fmt % (metadata.start_of_burst ? "true" : "false")
- % (metadata.end_of_burst ? "true" : "false");
- fmt % (metadata.has_time_spec ? "true" : "false")
- % metadata.time_spec.to_ticks(samp_rate);
- return fmt.str();
- }
- };
-
- void dbg_print_send(size_t nsamps_per_buff,
- size_t nsamps_sent,
- const uhd::tx_metadata_t& metadata,
- const double timeout,
- bool dbg_print_directly = true)
- {
- dbg_send_stat_t data(boost::get_system_time().time_of_day().total_microseconds(),
- nsamps_per_buff,
- nsamps_sent,
- metadata,
- timeout,
- _samp_rate);
- if (dbg_print_directly) {
- dbg_print_err(data.print_line());
- }
- }
- void dbg_print_err(std::string msg)
- {
- msg = "super_send_packet_handler," + msg;
- fprintf(stderr, "%s\n", msg.c_str());
- }
-
-
-#endif
/*******************************************************************
* Send a single packet: