dtrace4linux / linux

dtrace for linux - kernel driver and userland tools
http://crtags.blogspot.com
1.17k stars 226 forks source link

KSWAPD_SKIP_CONGESTION_WAIT undeclared #59

Closed rendaw closed 11 years ago

rendaw commented 11 years ago

I got this error while building on Arch Linux, kernel 3.9.9-1. I don't know too much about kernel programming, but I looked a little and I think KSWAPD_SKIP_CONGESTION_WAIT was removed in a recent patch: https://github.com/torvalds/linux/commit/258401a60c4df39332f30ef57afbc6dbf29a7e84 .

/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c: In function 'vminfo_init':
/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:136:32: error: 'KSWAPD_SKIP_CONGESTION_WAIT' undeclared (first use in this function)
  sdt_add_locator(vm_event_addr(KSWAPD_SKIP_CONGESTION_WAIT), "vminfo:::kswapd_skip_congestion_wait");
                                ^
/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:96:50: note: in definition of macro 'vm_event_addr'
 # define vm_event_addr(x) &vm_event_states.event[x]
                                                  ^
/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:136:32: note: each undeclared identifier is reported only once for each function it appears in
  sdt_add_locator(vm_event_addr(KSWAPD_SKIP_CONGESTION_WAIT), "vminfo:::kswapd_skip_congestion_wait");
                                ^
/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:96:50: note: in definition of macro 'vm_event_addr'
 # define vm_event_addr(x) &vm_event_states.event[x]
                                                  ^
dtrace4linux commented 11 years ago

Thanks - i will remove for the next release. I have an arch install but alas, mine doesnt boot (yet). tx

On 11 July 2013 04:07, Rendaw notifications@github.com wrote:

I got this error while building on Arch Linux, kernel 3.9.9-1. I don't know too much about kernel programming, but I looked a little and I think KSWAPD_SKIP_CONGESTION_WAIT was removed in a recent patch: torvalds/linux@ 258401ahttps://github.com/torvalds/linux/commit/258401a60c4df39332f30ef57afbc6dbf29a7e84.

/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c: In function 'vminfo_init':/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:136:32: error: 'KSWAPD_SKIP_CONGESTION_WAIT' undeclared (first use i n this function) sdt_add_locator(vm_event_addr(KSWAPD_SKIP_CONGESTION_WAIT), "vminfo:::kswapd_skip_congestion_wait"); ^/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:96:50: note: in definition of macro 'vm_event_addr'

define vm_event_addr(x) &vm_event_states.event[x]

                                              ^/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:136:32: note: each undeclared identifier is reported only once for each function it appears in

sdt_add_locator(vm_event_addr(KSWAPD_SKIP_CONGESTION_WAIT), "vminfo:::kswapd_skip_congestion_wait"); ^/home/rendaw/software/dtrace4linux/build-3.9.9-1-ARCH/driver/vminfo.c:96:50: note: in definition of macro 'vm_event_addr'

define vm_event_addr(x) &vm_event_states.event[x]

                                              ^

— Reply to this email directly or view it on GitHubhttps://github.com/dtrace4linux/linux/issues/59 .

rendaw commented 11 years ago

Great, the build works for me!

I think boot issues are part of the arch lifestyle.