making unwcheck.sh
Is anybody willing/capable/interested in fixing unwcheck.sh so it can actually handle 64-bit addresses? I'm not much of an awk hacker but I noticed that the only reason the script works on the kernel is because it drops the first digit of each address (look for gsub() to see what I mean). Of course, that makes it work on the kernel, but it won't work for checking a shared object, for example. Perhaps the whole script should just be converted to a real[1] language?
--david
[1] real = anything other than awk, perl, or tcl... ;-)
What's wrong with Perl? :) Okay, so there's plenty wrong with Perl, but I think it's a decent tool for the job.
I wrote a quick Perl version, though it only works properly on 64-bit platforms (reports an integer overflow otherwise). It wouldn't be too hard to work around this if it's an issue (since for a given function the upper 32 bits should presumably be invariant), in fact the same workaround could probably be done in the awk script.
http://www.cse.unsw.edu.au/~matthewc/files/unwcheck.pl
Python seems to handle big numbers better but I don't really know enough Python.
Matt
Quoted 16 lines · David Mosberger
Is anybody willing/capable/interested in fixing
unwcheck.shso it can actually handle 64-bit addresses? I'm not much of an awk hacker but I noticed that the only reason the script works on the kernel is because it drops the first digit of each address (look forgsub()to see what I mean). Of course, that makes it work on the kernel, but it won't work for checking a shared object, for example. Perhaps the whole script should just be converted to a real[1] language?--david[1] real = anything other than awk, perl, or tcl... ;-)
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html