Question: o write an awk script 'freesize.awk that gets the size of the free list after every Free or Alloc operation Your program should act like


o write an awk script 'freesize.awk that gets the size of the free list after every "Free" or "Alloc" operation Your program should act like this: $. awk -f freesize . awk malloc-out.txt l wc -1 1000 awk-f freesize. awk malloc-out.txt | tail-5 41 42 41 42 43 o write an awk script 'count allocs.awk' that counts the number of successful allocs and the number of failed alloc calls. Your program should act like this: $ awk -fcount allocs.awk malloc-out.txt num successes: 448; num failures: 106 o write an awk script 'num bytes.awk' that records the number of bytes requested in each alloc call. Your program should act like this awk -f num-bytes . awk malloc-out.txt I wc -l 554 awk -f num bytes . awk malloc-out . txt I head -200 | tail -5 1 10 10 o write an awk script 'succ_reqs.awk' that prints the number of bytes requested, and then a 1 or a 0 depending on whether the request was successful. Your program should act like this awk -f succ_reqs.awk malloc-out.txt | tail -5 8 0 3 1 5 1 10 0 6 1 o write an awk script 'freesize.awk that gets the size of the free list after every "Free" or "Alloc" operation Your program should act like this: $. awk -f freesize . awk malloc-out.txt l wc -1 1000 awk-f freesize. awk malloc-out.txt | tail-5 41 42 41 42 43 o write an awk script 'count allocs.awk' that counts the number of successful allocs and the number of failed alloc calls. Your program should act like this: $ awk -fcount allocs.awk malloc-out.txt num successes: 448; num failures: 106 o write an awk script 'num bytes.awk' that records the number of bytes requested in each alloc call. Your program should act like this awk -f num-bytes . awk malloc-out.txt I wc -l 554 awk -f num bytes . awk malloc-out . txt I head -200 | tail -5 1 10 10 o write an awk script 'succ_reqs.awk' that prints the number of bytes requested, and then a 1 or a 0 depending on whether the request was successful. Your program should act like this awk -f succ_reqs.awk malloc-out.txt | tail -5 8 0 3 1 5 1 10 0 6 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
