Can someone please tell me what version of software i have to use to build a kernel module.
Kernel version 3.10.49 perf .....aarch64
You just need a standard GNU C compiler to build a kernel module. You have to learn how to unpackage kernel source with dependencies so you get the headers and such that you need to build the module. In any case, your question indicates that you have some serious studying and experimentation to do before you are ready for this, unless that module has already packaged it to build easily, much like nVidia kernel modules. Even in that case, you still need the kernel headers and such to build them.