#include <ipxe/ip.h>
#include <ipxe/arp.h>
#include <ipxe/rarp.h>
+#include <ipxe/profile.h>
#include "pxe.h"
/**
struct net_device *pxe_netdev = NULL;
+/** Transmit profiler */
+static struct profiler undi_tx_profiler __profiler = { .name = "undi.tx" };
+
/**
* Set network device as current PXE network device
*
unsigned int i;
int rc;
+ /* Start profiling */
+ profile_start ( &undi_tx_profiler );
+
/* Sanity check */
if ( ! pxe_netdev ) {
DBGC ( &pxe_netdev, "PXENV_UNDI_TRANSMIT called with no "
return PXENV_EXIT_FAILURE;
}
+ profile_stop ( &undi_tx_profiler );
undi_transmit->Status = PXENV_STATUS_SUCCESS;
return PXENV_EXIT_SUCCESS;
}