Fix gotcha indexes for numa_gotcha (#161)

- In #152, `numa_alloc_interleaved` and `numa_alloc_local` both were
indexed at position 6
Этот коммит содержится в:
Jonathan R. Madsen
2022-09-13 23:03:45 -05:00
коммит произвёл GitHub
родитель 15e6e6d979
Коммит e4e3c2b7f4
2 изменённых файлов: 5 добавлений и 5 удалений
+4 -4
Просмотреть файл
@@ -74,10 +74,10 @@ numa_gotcha::configure()
int>("numa_move_pages");
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_interleaved");
numa_gotcha_t::configure<7, 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>("numa_free");
numa_gotcha_t::configure<7, void*, size_t>("numa_alloc_interleaved");
numa_gotcha_t::configure<8, void*, size_t, int>("numa_alloc_onnode");
numa_gotcha_t::configure<9, void*, void*, size_t, size_t>("numa_realloc");
numa_gotcha_t::configure<10, void, void*, size_t>("numa_free");
};
}
+1 -1
Просмотреть файл
@@ -38,7 +38,7 @@ namespace component
{
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 exit_func_t = void (*)(int);