Get rid of thread information in config output (we do sum)
This commit is contained in:
parent
b281709420
commit
5ddd8aef77
32
netisr_
32
netisr_
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 Babak Farrokhi. All rights reserved.
|
# Copyright (c) 2017 Babak Farrokhi. All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@ -94,21 +94,21 @@ elif [ "$1" == "config" ]; then
|
|||||||
|
|
||||||
awk '
|
awk '
|
||||||
/ ('${STAT_TYPE}') / {
|
/ ('${STAT_TYPE}') / {
|
||||||
print "t"$2 "_"$3"_queued.label Thread "$2 " Queued";
|
print $3"_queued.label Queued";
|
||||||
print "t"$2 "_"$3"_handled.label Thread "$2 " Handled";
|
print $3"_handled.label Handled";
|
||||||
print "t"$2 "_"$3"_dropped.label Thread "$2 " Dropped";
|
print $3"_dropped.label Dropped";
|
||||||
print "t"$2 "_"$3"_hdispatched.label Thread "$2 " Hybrid-Dispatched";
|
print $3"_hdispatched.label Hybrid-Dispatched";
|
||||||
print "t"$2 "_"$3"_dispatched.label Thread "$2" Dispatched";
|
print $3"_dispatched.label Dispatched";
|
||||||
print "t"$2 "_"$3"_queued.type DERIVE";
|
print $3"_queued.type DERIVE";
|
||||||
print "t"$2 "_"$3"_handled.type DERIVE";
|
print $3"_handled.type DERIVE";
|
||||||
print "t"$2 "_"$3"_dropped.type DERIVE";
|
print $3"_dropped.type DERIVE";
|
||||||
print "t"$2 "_"$3"_hdispatched.type DERIVE";
|
print $3"_hdispatched.type DERIVE";
|
||||||
print "t"$2 "_"$3"_dispatched.type DERIVE";
|
print $3"_dispatched.type DERIVE";
|
||||||
print "t"$2 "_"$3"_queued.min 0";
|
print $3"_queued.min 0";
|
||||||
print "t"$2 "_"$3"_handled.min 0";
|
print $3"_handled.min 0";
|
||||||
print "t"$2 "_"$3"_dropped.min 0";
|
print $3"_dropped.min 0";
|
||||||
print "t"$2 "_"$3"_hdispatched.min 0";
|
print $3"_hdispatched.min 0";
|
||||||
print "t"$2 "_"$3"_dispatched.min 0";
|
print $3"_dispatched.min 0";
|
||||||
}' ${STATFILE}
|
}' ${STATFILE}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user