Lines Matching refs:kmemleak_object

18  *   holding the metadata (struct kmemleak_object) for the allocated memory
21 * kmemleak_object structures are added to the object_list and
25 * - kmemleak_object.lock (raw_spinlock_t): protects a kmemleak_object.
37 * Note that the kmemleak_object.use_count is incremented when an object is
50 * The kmemleak_object structures have a use_count incremented or decremented
53 * kmemleak_object freeing via an RCU callback. All calls to the get_object()
137 struct kmemleak_object {
189 static struct kmemleak_object mem_pool[CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE];
281 struct kmemleak_object *object)
306 static bool color_white(const struct kmemleak_object *object)
312 static bool color_gray(const struct kmemleak_object *object)
323 static bool unreferenced_object(struct kmemleak_object *object)
335 struct kmemleak_object *object)
355 * Print the kmemleak_object information. This function is used mainly for
359 static void dump_object_info(struct kmemleak_object *object)
374 * Look-up a memory block metadata (kmemleak_object) in the object search
379 static struct kmemleak_object *lookup_object(unsigned long ptr, int alias)
384 struct kmemleak_object *object =
385 rb_entry(rb, struct kmemleak_object, rb_node);
408 static int get_object(struct kmemleak_object *object)
416 static struct kmemleak_object *mem_pool_alloc(gfp_t gfp)
419 struct kmemleak_object *object;
446 static void mem_pool_free(struct kmemleak_object *object)
462 * RCU callback to free a kmemleak_object.
468 struct kmemleak_object *object =
469 container_of(rcu, struct kmemleak_object, rcu);
489 static void put_object(struct kmemleak_object *object)
511 static struct kmemleak_object *find_and_get_object(unsigned long ptr, int alias)
514 struct kmemleak_object *object;
533 static void __remove_object(struct kmemleak_object *object)
544 static struct kmemleak_object *find_and_remove_object(unsigned long ptr, int alias)
547 struct kmemleak_object *object;
567 * Create the metadata (struct kmemleak_object) corresponding to an allocated
570 static struct kmemleak_object *create_object(unsigned long ptr, size_t size,
574 struct kmemleak_object *object, *parent;
580 pr_warn("Cannot allocate a kmemleak_object structure\n");
629 parent = rb_entry(rb_parent, struct kmemleak_object, rb_node);
659 static void __delete_object(struct kmemleak_object *object)
677 * Look up the metadata (struct kmemleak_object) corresponding to ptr and
682 struct kmemleak_object *object;
696 * Look up the metadata (struct kmemleak_object) corresponding to ptr and
702 struct kmemleak_object *object;
731 static void __paint_it(struct kmemleak_object *object, int color)
738 static void paint_it(struct kmemleak_object *object, int color)
749 struct kmemleak_object *object;
788 struct kmemleak_object *object;
841 struct kmemleak_object *object;
864 struct kmemleak_object *object;
1017 struct kmemleak_object *object;
1172 static bool update_checksum(struct kmemleak_object *object)
1188 static void update_refs(struct kmemleak_object *object)
1235 struct kmemleak_object *scanned)
1245 struct kmemleak_object *object;
1322 * Scan a memory block corresponding to a kmemleak_object. A condition is
1325 static void scan_object(struct kmemleak_object *object)
1373 struct kmemleak_object *object, *tmp;
1408 struct kmemleak_object *object;
1415 /* prepare the kmemleak_object's */
1624 struct kmemleak_object *object;
1650 struct kmemleak_object *prev_obj = v;
1651 struct kmemleak_object *next_obj = NULL;
1652 struct kmemleak_object *obj = prev_obj;
1689 struct kmemleak_object *object = v;
1714 struct kmemleak_object *object;
1741 struct kmemleak_object *object;
1853 struct kmemleak_object *object, *tmp;
1949 object_cache = KMEM_CACHE(kmemleak_object, SLAB_NOLEAKTRACE);