Lines Matching refs:flags
141 unsigned long flags; /* object status flags */ member
344 return (color_white(object) && object->flags & OBJECT_ALLOCATED) && in unreferenced_object()
391 pr_notice(" flags = 0x%lx\n", object->flags); in dump_object_info()
471 WARN_ON(object->flags & OBJECT_ALLOCATED); in put_object()
481 unsigned long flags; in find_and_get_object() local
485 read_lock_irqsave(&kmemleak_lock, flags); in find_and_get_object()
488 read_unlock_irqrestore(&kmemleak_lock, flags); in find_and_get_object()
521 unsigned long flags; in create_object() local
537 object->flags = OBJECT_ALLOCATED; in create_object()
566 write_lock_irqsave(&kmemleak_lock, flags); in create_object()
596 write_unlock_irqrestore(&kmemleak_lock, flags); in create_object()
606 unsigned long flags; in __delete_object() local
608 write_lock_irqsave(&kmemleak_lock, flags); in __delete_object()
611 write_unlock_irqrestore(&kmemleak_lock, flags); in __delete_object()
613 WARN_ON(!(object->flags & OBJECT_ALLOCATED)); in __delete_object()
620 spin_lock_irqsave(&object->lock, flags); in __delete_object()
621 object->flags &= ~OBJECT_ALLOCATED; in __delete_object()
622 spin_unlock_irqrestore(&object->lock, flags); in __delete_object()
689 object->flags |= OBJECT_NO_SCAN; in __paint_it()
694 unsigned long flags; in paint_it() local
696 spin_lock_irqsave(&object->lock, flags); in paint_it()
698 spin_unlock_irqrestore(&object->lock, flags); in paint_it()
741 unsigned long flags; in add_scan_area() local
758 spin_lock_irqsave(&object->lock, flags); in add_scan_area()
774 spin_unlock_irqrestore(&object->lock, flags); in add_scan_area()
786 unsigned long flags; in object_no_scan() local
795 spin_lock_irqsave(&object->lock, flags); in object_no_scan()
796 object->flags |= OBJECT_NO_SCAN; in object_no_scan()
797 spin_unlock_irqrestore(&object->lock, flags); in object_no_scan()
808 unsigned long flags; in log_early() local
826 local_irq_save(flags); in log_early()
834 local_irq_restore(flags); in log_early()
843 unsigned long flags; in early_alloc() local
857 spin_lock_irqsave(&object->lock, flags); in early_alloc()
861 spin_unlock_irqrestore(&object->lock, flags); in early_alloc()
1005 unsigned long flags; in kmemleak_update_trace() local
1021 spin_lock_irqsave(&object->lock, flags); in kmemleak_update_trace()
1023 spin_unlock_irqrestore(&object->lock, flags); in kmemleak_update_trace()
1157 unsigned long flags; in scan_block() local
1186 spin_lock_irqsave_nested(&object->lock, flags, in scan_block()
1190 spin_unlock_irqrestore(&object->lock, flags); in scan_block()
1204 spin_unlock_irqrestore(&object->lock, flags); in scan_block()
1208 spin_unlock_irqrestore(&object->lock, flags); in scan_block()
1220 unsigned long flags; in scan_object() local
1226 spin_lock_irqsave(&object->lock, flags); in scan_object()
1227 if (object->flags & OBJECT_NO_SCAN) in scan_object()
1229 if (!(object->flags & OBJECT_ALLOCATED)) in scan_object()
1236 while (start < end && (object->flags & OBJECT_ALLOCATED) && in scan_object()
1237 !(object->flags & OBJECT_NO_SCAN)) { in scan_object()
1242 spin_unlock_irqrestore(&object->lock, flags); in scan_object()
1244 spin_lock_irqsave(&object->lock, flags); in scan_object()
1252 spin_unlock_irqrestore(&object->lock, flags); in scan_object()
1295 unsigned long flags; in kmemleak_scan() local
1305 spin_lock_irqsave(&object->lock, flags); in kmemleak_scan()
1322 spin_unlock_irqrestore(&object->lock, flags); in kmemleak_scan()
1386 spin_lock_irqsave(&object->lock, flags); in kmemleak_scan()
1387 if (color_white(object) && (object->flags & OBJECT_ALLOCATED) in kmemleak_scan()
1393 spin_unlock_irqrestore(&object->lock, flags); in kmemleak_scan()
1413 spin_lock_irqsave(&object->lock, flags); in kmemleak_scan()
1415 !(object->flags & OBJECT_REPORTED)) { in kmemleak_scan()
1416 object->flags |= OBJECT_REPORTED; in kmemleak_scan()
1419 spin_unlock_irqrestore(&object->lock, flags); in kmemleak_scan()
1568 unsigned long flags; in kmemleak_seq_show() local
1570 spin_lock_irqsave(&object->lock, flags); in kmemleak_seq_show()
1571 if ((object->flags & OBJECT_REPORTED) && unreferenced_object(object)) in kmemleak_seq_show()
1573 spin_unlock_irqrestore(&object->lock, flags); in kmemleak_seq_show()
1591 unsigned long flags; in dump_str_object_info() local
1603 spin_lock_irqsave(&object->lock, flags); in dump_str_object_info()
1605 spin_unlock_irqrestore(&object->lock, flags); in dump_str_object_info()
1620 unsigned long flags; in kmemleak_clear() local
1624 spin_lock_irqsave(&object->lock, flags); in kmemleak_clear()
1625 if ((object->flags & OBJECT_REPORTED) && in kmemleak_clear()
1628 spin_unlock_irqrestore(&object->lock, flags); in kmemleak_clear()
1822 unsigned long flags; in kmemleak_init() local
1843 local_irq_save(flags); in kmemleak_init()
1846 local_irq_restore(flags); in kmemleak_init()
1852 local_irq_restore(flags); in kmemleak_init()