Git Product home page Git Product logo

Comments (9)

SaigyoujiYuyuko233 avatar SaigyoujiYuyuko233 commented on August 19, 2024 1

Screenshot from 2024-04-29 13-45-55

It works for me. Please show your dmesg output after running insmod

Oh I forget to rename the PROCNAME. After doing that it works fine. Thanks!

from kovid.

SaigyoujiYuyuko233 avatar SaigyoujiYuyuko233 commented on August 19, 2024

After checking out a6f38f9b4a92dd43d78415796c034b54237049a1, it works.
But after 29a32a7d9a00b06e7141fe0311926b651ff92b1b, the issue start appearing

from kovid.

carloslack avatar carloslack commented on August 19, 2024

Screenshot from 2024-04-29 13-45-55

It works for me. Please show your dmesg output after running insmod

from kovid.

saymyname77 avatar saymyname77 commented on August 19, 2024

same problem...

from kovid.

carloslack avatar carloslack commented on August 19, 2024

same problem...

rename your Makefile PROCNAME

from kovid.

saymyname77 avatar saymyname77 commented on August 19, 2024

same problem...

rename your Makefile PROCNAME

'''
COMPILER_OPTIONS := -Wall -DPROCNAME='"4396"'
'''
I have already loaded another lkm, is it possible that this is the reason?

from kovid.

carloslack avatar carloslack commented on August 19, 2024

Please, use ascii a-z for the name, not numbers then try again

from kovid.

saymyname77 avatar saymyname77 commented on August 19, 2024

Please, use ascii a-z for the name, not numbers then try again

COMPILER_OPTIONS := -Wall -DPROCNAME='"idle"'
still not work

make
/usr/bin/as --64 src/persist.S -statistics -fatal-warnings
-size-check=error -o src/persist.o
/usr/bin/as: total time in assembly: 0.007993
frag chains:

0x561245935e50 .text     	         5 frags

0x561245935ee8 .data     	         2 frags

0x561245935f80 .bss      	         2 frags

fixups: 5
1 mini local symbols created, 0 converted
/usr/bin/ld -Ttext 200000 --oformat binary -o src/persist src/persist.o
make -C /lib/modules/5.4.0-152-generic/build M=/home/xx/.rm/KoviD-master modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-152-generic'
CC [M] /home/xx/.rm/KoviD-master/src/kovid.o
In file included from /home/xx/.rm/KoviD-master/src/kovid.c:26:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/pid.o
In file included from /home/xx/.rm/KoviD-master/src/pid.c:17:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/fs.o
In file included from /home/xx/.rm/KoviD-master/src/fs.c:18:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/sys.o
In file included from /home/xx/.rm/KoviD-master/src/sys.c:19:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘m_bpf’:
/home/xx/.rm/KoviD-master/src/sys.c:242:2: warning: #warning "Using old __bpf_map_get" [-Wcpp]
#warning "Using old __bpf_map_get"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘m_execve’:
/home/xx/.rm/KoviD-master/src/sys.c:34:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
#define PT_REGS_PARM2(x) ((x)->si)
^
/home/xx/.rm/KoviD-master/src/sys.c:362:49: note: in expansion of macro ‘PT_REGS_PARM2’
struct user_arg_ptr argvx = { .ptr.native = PT_REGS_PARM2(regs) };
^~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c:34:26: note: (near initialization for ‘argvx.ptr.native’)
#define PT_REGS_PARM2(x) ((x)->si)
^
/home/xx/.rm/KoviD-master/src/sys.c:362:49: note: in expansion of macro ‘PT_REGS_PARM2’
struct user_arg_ptr argvx = { .ptr.native = PT_REGS_PARM2(regs) };
^~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: At top level:
/home/xx/.rm/KoviD-master/src/sys.c:454:9: note: #pragma message: tcp6_seq_show untested
#pragma message "tcp6_seq_show untested"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c:469:9: note: #pragma message: udp6_seq_show untested
#pragma message "udp6_seq_show untested"
^~~~~~~
/home/xx/.rm/KoviD-master/src/sys.c: In function ‘_tty_write_log’:
/home/xx/.rm/KoviD-master/src/sys.c:621:5: warning: ISO C90 forbids variable length array ‘ttybuf’ [-Wvla]
char ttybuf[len+16];
^~~~
In file included from /home/xx/.rm/KoviD-master/src/sys.c:19:0:
At top level:
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/sock.o
In file included from /home/xx/.rm/KoviD-master/src/sock.c:21:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/util.o
In file included from /home/xx/.rm/KoviD-master/src/util.c:16:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
CC [M] /home/xx/.rm/KoviD-master/src/vm.o
In file included from /home/xx/.rm/KoviD-master/src/vm.c:4:0:
/home/xx/.rm/KoviD-master/src/lkm.h:12:9: note: #pragma message: !!! Be careful: Build kovid in DEBUG mode !!!
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
^~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:175:20: warning: ‘kv_hide_str_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_str_on_load[] = {
^~~~~~~~~~~~~~~~~~~
/home/xx/.rm/KoviD-master/src/lkm.h:167:20: warning: ‘kv_hide_ps_on_load’ defined but not used [-Wunused-variable]
static const char *kv_hide_ps_on_load[] = {
^~~~~~~~~~~~~~~~~~
LD [M] /home/xx/.rm/KoviD-master/kovid.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /home/xx/.rm/KoviD-master/kovid.mod.o
LD [M] /home/xx/.rm/KoviD-master/kovid.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-152-generic'

from kovid.

carloslack avatar carloslack commented on August 19, 2024

no issues from the building I see, show your dmesg when loading the module.
remember you need to kill to activate the proc entry, after loading the module.

from kovid.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.