Fix gotcha indexes for numa_gotcha (#161)

- In #152, `numa_alloc_interleaved` and `numa_alloc_local` both were
indexed at position 6
Dieser Commit ist enthalten in:
Jonathan R. Madsen
2022-09-13 23:03:45 -05:00
committet von GitHub
Ursprung 15e6e6d979
Commit e4e3c2b7f4
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
@@ -74,10 +74,10 @@ numa_gotcha::configure()
int>("numa_move_pages"); int>("numa_move_pages");
numa_gotcha_t::configure<5, void*, size_t>("numa_alloc"); numa_gotcha_t::configure<5, void*, size_t>("numa_alloc");
numa_gotcha_t::configure<6, void*, size_t>("numa_alloc_local"); numa_gotcha_t::configure<6, void*, size_t>("numa_alloc_local");
numa_gotcha_t::configure<6, void*, size_t>("numa_alloc_interleaved"); numa_gotcha_t::configure<7, void*, size_t>("numa_alloc_interleaved");
numa_gotcha_t::configure<7, void*, size_t, int>("numa_alloc_onnode"); numa_gotcha_t::configure<8, void*, size_t, int>("numa_alloc_onnode");
numa_gotcha_t::configure<8, void*, void*, size_t, size_t>("numa_realloc"); numa_gotcha_t::configure<9, void*, void*, size_t, size_t>("numa_realloc");
numa_gotcha_t::configure<9, void, void*, size_t>("numa_free"); numa_gotcha_t::configure<10, void, void*, size_t>("numa_free");
}; };
} }
@@ -38,7 +38,7 @@ namespace component
{ {
struct numa_gotcha : tim::component::base<numa_gotcha, void> struct numa_gotcha : tim::component::base<numa_gotcha, void>
{ {
static constexpr size_t gotcha_capacity = 10; static constexpr size_t gotcha_capacity = 11;
using gotcha_data = tim::component::gotcha_data; using gotcha_data = tim::component::gotcha_data;
using exit_func_t = void (*)(int); using exit_func_t = void (*)(int);