#! /bin/sh # convert initcall addresses from system log # $1 is System.map file name # stdin is stream of initcall lines # Copyright (C) 2003, Randy Dunlap mapfile=$1 while read line; do text=`echo "$line" | cut -d ' ' -f 2` if [ "$text" != "initcall" ]; then echo "malformed line: 'initcall' expected here: $text" continue fi addr=`echo "$line" | cut -d ' ' -f 3` ksysmap $mapfile $addr done # end;