mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	This allows us to process AO2 statistics for total objects, memory usage, memory overhead and lock usage. * Install refstats.py and reflocks.py into the Asterisk scripts folder. * Enable support for reflocks.py without DEBUG_THREADS. Steal a bit from the ao2 magic to flag when an object lock is used. Remove 'lockobj' from reflocks.py since we can now record 'used' or 'unused' for those objects. Add comments to explain thread safety of the 'struct __priv_data' bitfields. Change-Id: I84e9d679cc86d772cc97c888d9d856a17e0d3a4a
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| #
 | |
| # Asterisk -- A telephony toolkit for Linux.
 | |
| #
 | |
| # Contrib scripts
 | |
| #
 | |
| # Copyright (C) 1999-2014, Digium, Inc.
 | |
| #
 | |
| # This program is free software, distributed under the terms of
 | |
| # the GNU General Public License
 | |
| #
 | |
| 
 | |
| ASTTOPDIR?=..
 | |
| -include $(ASTTOPDIR)/menuselect.makeopts
 | |
| 
 | |
| .PHONY: all clean install uninstall
 | |
| 
 | |
| all:
 | |
| clean:
 | |
| 
 | |
| include $(ASTTOPDIR)/Makefile.rules
 | |
| 
 | |
| install:
 | |
| 	$(INSTALL) -d "$(DESTDIR)$(ASTDATADIR)/scripts"
 | |
| 	$(INSTALL) -m 755 scripts/ast_logescalator "$(DESTDIR)$(ASTDATADIR)/scripts/ast_logescalator"
 | |
| 	$(INSTALL) -m 755 scripts/ast_loggrabber "$(DESTDIR)$(ASTDATADIR)/scripts/ast_loggrabber"
 | |
| 	$(INSTALL) -m 755 scripts/ast_coredumper "$(DESTDIR)$(ASTDATADIR)/scripts/ast_coredumper"
 | |
| 	$(INSTALL) -m 755 scripts/refcounter.py "$(DESTDIR)$(ASTDATADIR)/scripts/refcounter.py"
 | |
| 	$(INSTALL) -m 755 scripts/refstats.py "$(DESTDIR)$(ASTDATADIR)/scripts/refstats.py"
 | |
| 	$(INSTALL) -m 755 scripts/reflocks.py "$(DESTDIR)$(ASTDATADIR)/scripts/reflocks.py"
 | |
| 
 | |
| uninstall:
 | |
| 	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/ast_logescalator"
 | |
| 	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/ast_loggrabber"
 | |
| 	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/ast_coredumper"
 | |
| 	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/refcounter.py"
 | |
| 	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/refstats.py"
 | |
| 	-rm -f "$(DESTDIR)$(ASTDATADIR)/scripts/reflocks.py"
 |