address_range_t Struct Reference

address_range_t Struct Reference#

Rocprofiler SDK Developer API: rocprofiler::codeobj::segment::address_range_t Struct Reference
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
rocprofiler::codeobj::segment::address_range_t Struct Reference

#include "rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/segment.hpp"

+ Collaboration diagram for rocprofiler::codeobj::segment::address_range_t:

Public Member Functions

bool operator== (const address_range_t &other) const
 
bool operator< (const address_range_t &other) const
 
bool inrange (uint64_t _addr) const
 

Data Fields

uint64_t addr {0}
 
uint64_t size {0}
 
marker_id_t id {0}
 

Detailed Description

Definition at line 40 of file segment.hpp.

Member Function Documentation

◆ inrange()

bool rocprofiler::codeobj::segment::address_range_t::inrange ( uint64_t  _addr) const
inline

Definition at line 56 of file segment.hpp.

56{ return addr <= _addr && addr + size > _addr; };

Referenced by rocprofiler::codeobj::segment::CodeobjTableTranslator::find_codeobj_in_range().

+ Here is the caller graph for this function:

◆ operator<()

bool rocprofiler::codeobj::segment::address_range_t::operator< ( const address_range_t other) const
inline

Definition at line 51 of file segment.hpp.

52 {
53 if(*this == other) return false;
54 return addr < other.addr;
55 }

References addr.

◆ operator==()

bool rocprofiler::codeobj::segment::address_range_t::operator== ( const address_range_t other) const
inline

Definition at line 46 of file segment.hpp.

47 {
48 return (addr >= other.addr && addr < other.addr + other.size) ||
49 (other.addr >= addr && other.addr < addr + size);
50 }

References addr, and size.

Field Documentation

◆ addr

uint64_t rocprofiler::codeobj::segment::address_range_t::addr {0}

Definition at line 42 of file segment.hpp.

42{0};

Referenced by operator<(), and operator==().

◆ id

marker_id_t rocprofiler::codeobj::segment::address_range_t::id {0}

Definition at line 44 of file segment.hpp.

44{0};

◆ size

uint64_t rocprofiler::codeobj::segment::address_range_t::size {0}

Definition at line 43 of file segment.hpp.

43{0};

Referenced by operator==().


The documentation for this struct was generated from the following file:
  • rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/segment.hpp