aboutsummaryrefslogtreecommitdiff
path: root/src/chattymalloc.h
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-05-01 15:47:25 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-05-01 15:47:25 +0200
commit8db3dafe61e2074c6ea51ae25aec255f361e6557 (patch)
tree2edff6e2f2c51688d6e3e329a0448b6cde3e78b1 /src/chattymalloc.h
parentf7d8e0f2394287bfdb20a9a16494327f9de46f01 (diff)
downloadallocbench-8db3dafe61e2074c6ea51ae25aec255f361e6557.tar.gz
allocbench-8db3dafe61e2074c6ea51ae25aec255f361e6557.zip
improve chattymalloc trace infrastructure
* Detect empty entries. * Parse the trace entries using the struct python library * fix realloc accounting * multiple fixes in chattyparser
Diffstat (limited to 'src/chattymalloc.h')
-rw-r--r--src/chattymalloc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/chattymalloc.h b/src/chattymalloc.h
index 38c42d4..5120193 100644
--- a/src/chattymalloc.h
+++ b/src/chattymalloc.h
@@ -17,9 +17,11 @@ You should have received a copy of the GNU General Public License
along with allocbench. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <sys/types.h>
+#include <stdint.h> // uint8_t
+#include <sys/types.h> // pid_t
enum functions {
+ UNINITIALIZED,
MALLOC,
FREE,
REALLOC,
@@ -32,10 +34,10 @@ enum functions {
THREAD_TERMINATION};
typedef struct trace {
- pid_t tid;
void* ptr;
size_t size;
size_t var_arg;
+ pid_t tid;
char func;
} __attribute__((packed)) trace_t;