From 1b58937968accec823051a1f00a56ae1e7438ece Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Rebuild task_struct & net_device against latest kerneldb. --- lib/kernel_net_device.ml | 2 ++ lib/kernel_task_struct.ml | 27 +++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/lib/kernel_net_device.ml b/lib/kernel_net_device.ml index 2a4a53c..636df4b 100644 --- a/lib/kernel_net_device.ml +++ b/lib/kernel_net_device.ml @@ -282,6 +282,8 @@ let v = (parser_1, 912);; let map = StringMap.add "2.6.20-1.2933.fc6.i686" v map;; let v = (parser_4, 2316);; let map = StringMap.add "2.6.21-1.3209.fc8.x86_64" v map;; +let v = (parser_2, 1092);; +let map = StringMap.add "2.6.21-1.3238.fc8.ppc" v map;; let v = (parser_4, 2316);; let map = StringMap.add "2.6.21-1.3234.fc8.x86_64" v map;; let v = (parser_2, 1092);; diff --git a/lib/kernel_task_struct.ml b/lib/kernel_task_struct.ml index b584fbc..dfcbeb3 100644 --- a/lib/kernel_task_struct.ml +++ b/lib/kernel_task_struct.ml @@ -536,6 +536,27 @@ let parser_25 bits = bitmatch bits with task_struct_comm = task_struct_comm } | { _ } -> raise (ParseError ("task_struct", "parser_25", "failed to match kernel structure"));; let parser_26 bits = bitmatch bits with + | { task_struct_state : zero+32 : offset(0), bigendian; + task_struct_prio : zero+32 : offset(160), bigendian; + task_struct_static_prio : zero+32 : offset(192), bigendian; + task_struct_normal_prio : zero+32 : offset(224), bigendian; + task_struct_tasks'next : zero+32 : offset(2240), bigendian; + task_struct_tasks'prev : zero+32 : offset(2272), bigendian; + task_struct_mm : zero+32 : offset(2304), bigendian; + task_struct_active_mm : zero+32 : offset(2336), bigendian; + task_struct_pid : zero+32 : offset(2592), bigendian; + task_struct_comm : 128 : offset(4480), string } -> { task_struct_state = task_struct_state; + task_struct_prio = task_struct_prio; + task_struct_static_prio = task_struct_static_prio; + task_struct_normal_prio = task_struct_normal_prio; + task_struct_tasks'next = Int64.sub task_struct_tasks'next 280L; + task_struct_tasks'prev = Int64.sub task_struct_tasks'prev 284L; + task_struct_mm = task_struct_mm; + task_struct_active_mm = task_struct_active_mm; + task_struct_pid = task_struct_pid; + task_struct_comm = task_struct_comm } + | { _ } -> raise (ParseError ("task_struct", "parser_26", "failed to match kernel structure"));; +let parser_27 bits = bitmatch bits with | { task_struct_state : zero+64 : offset(0), littleendian; task_struct_prio : zero+32 : offset(256), littleendian; task_struct_static_prio : zero+32 : offset(288), littleendian; @@ -555,7 +576,7 @@ let parser_26 bits = bitmatch bits with task_struct_active_mm = task_struct_active_mm; task_struct_pid = task_struct_pid; task_struct_comm = task_struct_comm } - | { _ } -> raise (ParseError ("task_struct", "parser_26", "failed to match kernel structure"));; + | { _ } -> raise (ParseError ("task_struct", "parser_27", "failed to match kernel structure"));; module StringMap = Map.Make(String);; let map = StringMap.empty;; let v = (parser_1, 2704);; @@ -750,7 +771,9 @@ let v = (parser_1, 1400);; let map = StringMap.add "2.6.20-1.2933.fc6.i686" v map;; let v = (parser_23, 3756);; let map = StringMap.add "2.6.21-1.3209.fc8.x86_64" v map;; -let v = (parser_26, 3932);; +let v = (parser_26, 1756);; +let map = StringMap.add "2.6.21-1.3238.fc8.ppc" v map;; +let v = (parser_27, 3932);; let map = StringMap.add "2.6.21-1.3234.fc8.x86_64" v map;; let v = (parser_24, 1780);; let map = StringMap.add "2.6.21-1.3234.fc8.ppc" v map;; -- 1.8.3.1