• Home
  • Raw
  • Download

Lines Matching +full:1 +full:- +full:9 +full:a +full:- +full:f

25 	'cross-compile|c=s'	=> \$cross_compile,
31 my $kerver = `uname -r`;
52 if ($line =~ /EAX: ([0-9a-f]+) EBX: ([0-9a-f]+) ECX: ([0-9a-f]+) EDX: ([0-9a-f]+)/) {
53 $regs{"%eax"} = $1;
58 if ($line =~ /ESI: ([0-9a-f]+) EDI: ([0-9a-f]+) EBP: ([0-9a-f]+) ESP: ([0-9a-f]+)/) {
59 $regs{"%esi"} = $1;
63 if ($line =~ /RAX: ([0-9a-f]+) RBX: ([0-9a-f]+) RCX: ([0-9a-f]+)/) {
64 $regs{"%eax"} = $1;
68 if ($line =~ /RDX: ([0-9a-f]+) RSI: ([0-9a-f]+) RDI: ([0-9a-f]+)/) {
69 $regs{"%edx"} = $1;
73 if ($line =~ /RBP: ([0-9a-f]+) R08: ([0-9a-f]+) R09: ([0-9a-f]+)/) {
77 if ($line =~ /R10: ([0-9a-f]+) R11: ([0-9a-f]+) R12: ([0-9a-f]+)/) {
78 $regs{"%r10"} = $1;
82 if ($line =~ /R13: ([0-9a-f]+) R14: ([0-9a-f]+) R15: ([0-9a-f]+)/) {
83 $regs{"%r13"} = $1;
92 $reg =~ s/r(.)x/e\1x/;
93 $reg =~ s/r(.)i/e\1i/;
94 $reg =~ s/r(.)p/e\1p/;
107 if ($line =~ /([0-9a-zA-Z\,\%\(\)\-\+]+)$/) {
108 $lastword = $1;
119 $clobber =~ s/\([a-z0-9\%\,]+\)//g;
140 # we print it with a =>, and then delete its value
161 if ($line =~ /EIP: 0060:\[\<([a-z0-9]+)\>\]/) {
162 $target = $1;
164 if ($line =~ /RIP: 0010:\[\<([a-z0-9]+)\>\]/) {
165 $target = $1;
167 if ($line =~ /EIP is at ([a-zA-Z0-9\_]+)\+0x([0-9a-f]+)\/0x[a-f0-9]/) {
168 $function = $1;
171 …if ($line =~ /RIP: 0010:\[\<[0-9a-f]+\>\] \[\<[0-9a-f]+\>\] ([a-zA-Z0-9\_]+)\+0x([0-9a-f]+)\/0x[a…
172 $function = $1;
176 # check if it's a module
177 if ($line =~ /EIP is at ([a-zA-Z0-9\_]+)\+(0x[0-9a-f]+)\/0x[a-f0-9]+\W\[([a-zA-Z0-9\_\-]+)\]/) {
180 …f ($line =~ /RIP: 0010:\[\<[0-9a-f]+\>\] \[\<[0-9a-f]+\>\] ([a-zA-Z0-9\_]+)\+(0x[0-9a-f]+)\/0x[a-
186 my $decodestart = Math::BigInt->from_hex("0x$target") - Math::BigInt->from_hex("0x$func_offset");
187 my $decodestop = Math::BigInt->from_hex("0x$target") + 8192;
193 # if it's a module, we need to find the .ko file and calculate a load offset
196 $modulefile = `modinfo -F filename $module`;
205 open(FILE, $cross_compile."objdump -dS $filename |") || die "Cannot start objdump";
207 if ($_ =~ /^([0-9a-f]+) \<$function\>\:/) {
208 my $fu = $1;
209 …$vmaoffset = Math::BigInt->from_hex("0x$target") - Math::BigInt->from_hex("0x$fu") - Math::BigInt-
217 my $center = -1;
225 my $delta = Math::BigInt->from_hex($ad) - Math::BigInt->from_hex($ta);
227 if (($delta > -4096) && ($delta < 4096)) {
228 return 1;
238 open(FILE, $cross_compile."objdump -dS --adjust-vma=$vmaoffset --start-address=$decodestart --stop-
244 if ($line =~ /^([a-f0-9]+)\:/) {
245 if (InRange($1, $target)) {
246 $state = 1;
250 if ($state == 1) {
251 if ($line =~ /^([a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]+)\:/) {
252 my $val = $1;
262 $counter = $counter + 1;
273 if ($center == -1) {
286 while ($start > 1) {
287 $start = $start - 1;
289 if ($line =~ /^([a-f0-9]+)\:/) {
290 $binarylines = $binarylines + 1;
292 $codelines = $codelines + 1;
307 $finish = $finish + 1;
309 if ($line =~ /^([a-f0-9]+)\:/) {
310 $binarylines = $binarylines + 1;
312 $codelines = $codelines + 1;
333 $reglines[$i] = process_x86_regs($lines[$i], $center - $i);
334 $i = $i - 1;
347 my $c = 60 - length($line);
348 while ($c > 0) { print " "; $c = $c - 1; };
352 print "<--- faulting instruction";
355 $i = $i +1;
364 -c, --cross-compile CROSS_COMPILE Specify the prefix used for toolchain.
365 -m, --module MODULE_DIRNAME Specify the module filename.
366 -h, --help Help.