Changes in kernel/generic/src/mm/slab.c [8df5f20:b60615b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/slab.c
r8df5f20 rb60615b 158 158 * 159 159 */ 160 _NO_TRACE static slab_t *slab_space_alloc(slab_cache_t *cache,160 NO_TRACE static slab_t *slab_space_alloc(slab_cache_t *cache, 161 161 unsigned int flags) 162 162 { … … 206 206 * 207 207 */ 208 _NO_TRACE static size_t slab_space_free(slab_cache_t *cache, slab_t *slab)208 NO_TRACE static size_t slab_space_free(slab_cache_t *cache, slab_t *slab) 209 209 { 210 210 frame_free(KA2PA(slab->start), slab->cache->frames); … … 218 218 219 219 /** Map object to slab structure */ 220 _NO_TRACE static slab_t *obj2slab(void *obj)220 NO_TRACE static slab_t *obj2slab(void *obj) 221 221 { 222 222 return (slab_t *) frame_get_parent(ADDR2PFN(KA2PA(obj)), 0); … … 234 234 * 235 235 */ 236 _NO_TRACE static size_t slab_obj_destroy(slab_cache_t *cache, void *obj,236 NO_TRACE static size_t slab_obj_destroy(slab_cache_t *cache, void *obj, 237 237 slab_t *slab) 238 238 { … … 276 276 * 277 277 */ 278 _NO_TRACE static void *slab_obj_create(slab_cache_t *cache, unsigned int flags)278 NO_TRACE static void *slab_obj_create(slab_cache_t *cache, unsigned int flags) 279 279 { 280 280 irq_spinlock_lock(&cache->slablock, true); … … 332 332 * 333 333 */ 334 _NO_TRACE static slab_magazine_t *get_mag_from_cache(slab_cache_t *cache,334 NO_TRACE static slab_magazine_t *get_mag_from_cache(slab_cache_t *cache, 335 335 bool first) 336 336 { … … 357 357 * 358 358 */ 359 _NO_TRACE static void put_mag_to_cache(slab_cache_t *cache,359 NO_TRACE static void put_mag_to_cache(slab_cache_t *cache, 360 360 slab_magazine_t *mag) 361 361 { … … 373 373 * 374 374 */ 375 _NO_TRACE static size_t magazine_destroy(slab_cache_t *cache,375 NO_TRACE static size_t magazine_destroy(slab_cache_t *cache, 376 376 slab_magazine_t *mag) 377 377 { … … 392 392 * 393 393 */ 394 _NO_TRACE static slab_magazine_t *get_full_current_mag(slab_cache_t *cache)394 NO_TRACE static slab_magazine_t *get_full_current_mag(slab_cache_t *cache) 395 395 { 396 396 slab_magazine_t *cmag = cache->mag_cache[CPU->id].current; … … 429 429 * 430 430 */ 431 _NO_TRACE static void *magazine_obj_get(slab_cache_t *cache)431 NO_TRACE static void *magazine_obj_get(slab_cache_t *cache) 432 432 { 433 433 if (!CPU) … … 459 459 * 460 460 */ 461 _NO_TRACE static slab_magazine_t *make_empty_current_mag(slab_cache_t *cache)461 NO_TRACE static slab_magazine_t *make_empty_current_mag(slab_cache_t *cache) 462 462 { 463 463 slab_magazine_t *cmag = cache->mag_cache[CPU->id].current; … … 509 509 * 510 510 */ 511 _NO_TRACE static int magazine_obj_put(slab_cache_t *cache, void *obj)511 NO_TRACE static int magazine_obj_put(slab_cache_t *cache, void *obj) 512 512 { 513 513 if (!CPU) … … 538 538 * 539 539 */ 540 _NO_TRACE static size_t comp_objects(slab_cache_t *cache)540 NO_TRACE static size_t comp_objects(slab_cache_t *cache) 541 541 { 542 542 if (cache->flags & SLAB_CACHE_SLINSIDE) … … 550 550 * 551 551 */ 552 _NO_TRACE static size_t badness(slab_cache_t *cache)552 NO_TRACE static size_t badness(slab_cache_t *cache) 553 553 { 554 554 size_t objects = comp_objects(cache); … … 564 564 * 565 565 */ 566 _NO_TRACE static bool make_magcache(slab_cache_t *cache)566 NO_TRACE static bool make_magcache(slab_cache_t *cache) 567 567 { 568 568 assert(_slab_initialized >= 2); … … 585 585 * 586 586 */ 587 _NO_TRACE static void _slab_cache_create(slab_cache_t *cache, const char *name,587 NO_TRACE static void _slab_cache_create(slab_cache_t *cache, const char *name, 588 588 size_t size, size_t align, errno_t (*constructor)(void *obj, 589 589 unsigned int kmflag), size_t (*destructor)(void *obj), unsigned int flags) … … 660 660 * 661 661 */ 662 _NO_TRACE static size_t _slab_reclaim(slab_cache_t *cache, unsigned int flags)662 NO_TRACE static size_t _slab_reclaim(slab_cache_t *cache, unsigned int flags) 663 663 { 664 664 if (cache->flags & SLAB_CACHE_NOMAGAZINE) … … 707 707 * 708 708 */ 709 _NO_TRACE static void _slab_free(slab_cache_t *cache, void *obj, slab_t *slab)709 NO_TRACE static void _slab_free(slab_cache_t *cache, void *obj, slab_t *slab) 710 710 { 711 711 if (!obj)
Note:
See TracChangeset
for help on using the changeset viewer.