Searched refs:kmemleak_object (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/mm/
H A Dkmemleak.c31 * holding the metadata (struct kmemleak_object) for the allocated memory
34 * kmemleak_object structures are added to the object_list and
38 * - kmemleak_object.lock (spinlock): protects a kmemleak_object. Accesses to
50 * Note that the kmemleak_object.use_count is incremented when an object is
56 * The kmemleak_object structures have a use_count incremented or decremented
59 * kmemleak_object freeing via an RCU callback. All calls to the get_object()
141 struct kmemleak_object { struct
295 struct kmemleak_object *object) hex_dump_object()
327 static bool color_white(const struct kmemleak_object *object) color_white()
333 static bool color_gray(const struct kmemleak_object *object) color_gray()
344 static bool unreferenced_object(struct kmemleak_object *object) unreferenced_object()
356 struct kmemleak_object *object) print_unreferenced()
376 * Print the kmemleak_object information. This function is used mainly for
380 static void dump_object_info(struct kmemleak_object *object) dump_object_info()
400 * Look-up a memory block metadata (kmemleak_object) in the object search
405 static struct kmemleak_object *lookup_object(unsigned long ptr, int alias) lookup_object()
410 struct kmemleak_object *object = lookup_object()
411 rb_entry(rb, struct kmemleak_object, rb_node); lookup_object()
434 static int get_object(struct kmemleak_object *object) get_object()
440 * RCU callback to free a kmemleak_object.
446 struct kmemleak_object *object = free_object_rcu()
447 container_of(rcu, struct kmemleak_object, rcu); free_object_rcu()
467 static void put_object(struct kmemleak_object *object) put_object()
481 static struct kmemleak_object *find_and_get_object(unsigned long ptr, int alias) find_and_get_object()
484 struct kmemleak_object *object = NULL; find_and_get_object()
517 * Create the metadata (struct kmemleak_object) corresponding to an allocated
520 static struct kmemleak_object *create_object(unsigned long ptr, size_t size, create_object()
524 struct kmemleak_object *object, *parent; create_object()
529 pr_warning("Cannot allocate a kmemleak_object structure\n"); create_object()
576 parent = rb_entry(rb_parent, struct kmemleak_object, rb_node); create_object()
603 * Remove the metadata (struct kmemleak_object) for a memory block from the
606 static void __delete_object(struct kmemleak_object *object) __delete_object()
629 * Look up the metadata (struct kmemleak_object) corresponding to ptr and
634 struct kmemleak_object *object; delete_object_full()
649 * Look up the metadata (struct kmemleak_object) corresponding to ptr and
655 struct kmemleak_object *object; delete_object_part()
687 static void __paint_it(struct kmemleak_object *object, int color) __paint_it()
694 static void paint_it(struct kmemleak_object *object, int color) paint_it()
705 struct kmemleak_object *object; paint_ptr()
744 struct kmemleak_object *object; add_scan_area()
789 struct kmemleak_object *object; object_no_scan()
844 struct kmemleak_object *object; early_alloc()
1006 struct kmemleak_object *object; kmemleak_update_trace()
1114 static bool update_checksum(struct kmemleak_object *object) update_checksum()
1154 struct kmemleak_object *scanned, int allow_resched) scan_block()
1161 struct kmemleak_object *object; scan_block()
1221 * Scan a memory block corresponding to a kmemleak_object. A condition is
1224 static void scan_object(struct kmemleak_object *object) scan_object()
1268 struct kmemleak_object *object, *tmp; scan_gray_list()
1303 struct kmemleak_object *object; kmemleak_scan()
1309 /* prepare the kmemleak_object's */ kmemleak_scan()
1509 struct kmemleak_object *object; kmemleak_seq_start()
1535 struct kmemleak_object *prev_obj = v; kmemleak_seq_next()
1536 struct kmemleak_object *next_obj = NULL; kmemleak_seq_next()
1537 struct kmemleak_object *obj = prev_obj; kmemleak_seq_next()
1574 struct kmemleak_object *object = v; kmemleak_seq_show()
1599 struct kmemleak_object *object; dump_str_object_info()
1626 struct kmemleak_object *object; kmemleak_clear()
1738 struct kmemleak_object *object; __kmemleak_do_cleanup()
1842 object_cache = KMEM_CACHE(kmemleak_object, SLAB_NOLEAKTRACE); kmemleak_init()

Completed in 67 milliseconds