Required tools for playing around with memory:
hexdumpobjdumpreadelfxxdgcore
| /* | |
| Compile with: | |
| gcc elfsize.c -o elfsize | |
| Example: | |
| ls -l 126584 |
| /**//**//**//**//**//**//* | |
| ** ================================================================================================== | |
| ** 类名:J.gbk | |
| ** 版本:1.0 | |
| ** 功能:URLEncode,URLDecode | |
| ** 示例: | |
| --------------------------------------------------------------------------------------------------- | |
| 用法:参见组件地址 | |
| /* please refer better example: https://github.com/dvdhrm/docs/tree/master/drm-howto/ */ | |
| #define _XOPEN_SOURCE 600 | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/mman.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <xf86drm.h> |