Ensō 0.4.6
Software API reference
Loading...
Searching...
No Matches
helpers.cpp File Reference

Miscellaneous helper functions. More...

#include <enso/helpers.h>
#include <cstdio>
#include <iostream>
#include <thread>
#include <vector>

Go to the source code of this file.

Functions

uint16_t enso::get_bdf_from_pcie_addr (const std::string &pcie_addr)
 
void enso::print_buf (void *buf, const uint32_t nb_cache_lines)
 
void enso::print_ip (uint32_t ip)
 
void enso::print_pkt_ips (uint8_t *pkt)
 
void enso::print_pkt_header (uint8_t *pkt)
 
int enso::set_core_id (std::thread &thread, int core_id)
 
void enso::show_stats (const std::vector< stats_t > &thread_stats, volatile bool *keep_running)
 

Detailed Description

Miscellaneous helper functions.

Author
Hugo Sadok sadok.nosp@m.@cmu.nosp@m..edu

Definition in file helpers.cpp.

Function Documentation

◆ get_bdf_from_pcie_addr()

uint16_t enso::get_bdf_from_pcie_addr ( const std::string &  pcie_addr)

Definition at line 48 of file helpers.cpp.

◆ print_buf()

void enso::print_buf ( void *  buf,
const uint32_t  nb_cache_lines 
)

Definition at line 64 of file helpers.cpp.

◆ print_ip()

void enso::print_ip ( uint32_t  ip)

Definition at line 79 of file helpers.cpp.

◆ print_pkt_header()

void enso::print_pkt_header ( uint8_t *  pkt)

Definition at line 97 of file helpers.cpp.

◆ print_pkt_ips()

void enso::print_pkt_ips ( uint8_t *  pkt)

Definition at line 84 of file helpers.cpp.

◆ set_core_id()

int enso::set_core_id ( std::thread &  thread,
int  core_id 
)

Definition at line 135 of file helpers.cpp.

◆ show_stats()

void enso::show_stats ( const std::vector< stats_t > &  thread_stats,
volatile bool *  keep_running 
)

Definition at line 157 of file helpers.cpp.