mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
8b767db330
Later we will use libcapstone to disassemble instructions of samples. Signed-off-by: Changbin Du <changbin.du@huawei.com> Reviewed-by: Adrian Hunter <adrian.hunter@intel.com> Cc: changbin.du@gmail.com Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Andi Kleen <ak@linux.intel.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20240217074046.4100789-2-changbin.du@huawei.com
12 lines
157 B
C
12 lines
157 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <capstone/capstone.h>
|
|
|
|
int main(void)
|
|
{
|
|
csh handle;
|
|
|
|
cs_open(CS_ARCH_X86, CS_MODE_64, &handle);
|
|
return 0;
|
|
}
|