Required tools for playing around with memory:
hexdump
objdump
readelf
xxd
gcore
int64_t ipow(int32_t base, uint8_t exp) { | |
static const uint8_t highest_bit_set[] = { | |
0, 1, 2, 2, 3, 3, 3, 3, | |
4, 4, 4, 4, 4, 4, 4, 4, | |
5, 5, 5, 5, 5, 5, 5, 5, | |
5, 5, 5, 5, 5, 5, 5, 5, | |
6, 6, 6, 6, 6, 6, 6, 6, | |
6, 6, 6, 6, 6, 6, 6, 6, | |
6, 6, 6, 6, 6, 6, 6, 6, | |
6, 6, 6, 6, 6, 6, 6, 255, // anything past 63 is a guaranteed overflow with base > 1 |
#include <string> | |
#include <string.h> | |
#include <map> | |
#include <vector> | |
#include <iostream> | |
#include <assert.h> | |
const int OP_MAX = 9; |
#include <sched.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <poll.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <unistd.h> |
{"lastUpload":"2021-09-03T11:16:36.410Z","extensionVersion":"v3.4.3"} |
/* | |
* Displays linux /proc/pid/stat in human-readable format | |
* | |
* Build: gcc -o procstat procstat.c | |
* Usage: procstat pid | |
* cat /proc/pid/stat | procstat | |
* | |
* Homepage: http://www.brokestream.com/procstat.html | |
* Version : 2009-03-05 | |
* |