# # Awk program to analyze mtrace.c output. # $1 == "+" { if (allocated[$2] != "") print "+", $2, "Alloc", NR, "duplicate:", allocated[$2]; else allocated[$2] = $3; } $1 == "-" { if (allocated[$2] != "") { allocated[$2] = ""; if (allocated[$2] != "") print "DELETE FAILED", $2, allocated[$2]; } else print "-", $2, "Free", NR, "was never alloc'd"; } $1 == "<" { if (allocated[$2] != "") allocated[$2] = ""; else print "-", $2, "Realloc", NR, "was never alloc'd"; } $1 == ">" { if (allocated[$2] != "") print "+", $2, "Realloc", NR, "duplicate:", allocated[$2]; else allocated[$2] = $3; } # Ignore "= Start" $1 == "=" { } # Ignore failed realloc attempts for now $1 == "!" { } END { for (x in allocated) if (allocated[x] != "") print "+", x, allocated[x]; } fs NetBSD fork for lockdoc analysismerlin@scholz.ruhr
summaryrefslogtreecommitdiff
path: root/usr.bin/netstat/ipsec.c
AgeCommit message (Collapse)Author
2012-03-22remove KAME IPSEC, replaced by FAST_IPSECdrochner
2012-01-06split the ipsec.c source file into the pfkey part which is shareddrochner
with FAST_IPSEC and KAME specific IPSEC statistics
2009-04-12Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare).lukem
Fix probable bug with numeric printing of anon ports when using sysctl.
2008-04-24Note which things are not available by KVM, and print a nice messagethorpej
stating so if someone specifically asks for it.
2008-04-23PF_KEY stats for IPSEC and FAST_IPSEC are now per-CPU.thorpej
2008-04-23Make IPSEC and FAST_IPSEC stats per-cpu. Use <net/net_stats.h> andthorpej
netstat_sysctl().
2005-08-04Added #include <kvm.h> since netstat.h, which is included too, needs it.rpaulo
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-07-25support new algorithmsitojun
2003-07-22support hmac-sha2.itojun
2003-04-15make char array bigger where it seems too small and may overrun.itojun