uma_int.h (416ba5c74546f32a993436a99516d35008e9f384) uma_int.h (54503a13d8711f183ffedbf6a994ae79108b791b)
1/*-
2 * Copyright (c) 2002-2005, 2009, 2013 Jeffrey Roberson <jeff@FreeBSD.org>
3 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 289 unchanged lines hidden (view full) ---

298
299 volatile u_long uz_allocs UMA_ALIGN; /* Total number of allocations */
300 volatile u_long uz_fails; /* Total number of alloc failures */
301 volatile u_long uz_frees; /* Total number of frees */
302 uint64_t uz_sleeps; /* Total number of alloc sleeps */
303 uint16_t uz_count; /* Amount of items in full bucket */
304 uint16_t uz_count_min; /* Minimal amount of items there */
305
1/*-
2 * Copyright (c) 2002-2005, 2009, 2013 Jeffrey Roberson <jeff@FreeBSD.org>
3 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 289 unchanged lines hidden (view full) ---

298
299 volatile u_long uz_allocs UMA_ALIGN; /* Total number of allocations */
300 volatile u_long uz_fails; /* Total number of alloc failures */
301 volatile u_long uz_frees; /* Total number of frees */
302 uint64_t uz_sleeps; /* Total number of alloc sleeps */
303 uint16_t uz_count; /* Amount of items in full bucket */
304 uint16_t uz_count_min; /* Minimal amount of items there */
305
306 /* The next three fields are used to print a rate-limited warnings. */
306 /* The next two fields are used to print a rate-limited warnings. */
307 const char *uz_warning; /* Warning to print on failure */
308 struct timeval uz_ratecheck; /* Warnings rate-limiting */
309
307 const char *uz_warning; /* Warning to print on failure */
308 struct timeval uz_ratecheck; /* Warnings rate-limiting */
309
310 uma_maxaction_t uz_maxaction; /* Function to run when at limit */
311
310 /*
311 * This HAS to be the last item because we adjust the zone size
312 * based on NCPU and then allocate the space for the zones.
313 */
314 struct uma_cache uz_cpu[1]; /* Per cpu caches */
315};
316
317/*

--- 115 unchanged lines hidden ---
312 /*
313 * This HAS to be the last item because we adjust the zone size
314 * based on NCPU and then allocate the space for the zones.
315 */
316 struct uma_cache uz_cpu[1]; /* Per cpu caches */
317};
318
319/*

--- 115 unchanged lines hidden ---