• Home
  • Raw
  • Download

Lines Matching refs:path_name

153         my $path_name = defined $path ? "$path/$file" : $file;
154 process_file($path_name);
164 my ($path_name) = @_;
166 return ($path_name =~ /^include\//) ? 1 : 0;
173 my ($path_name) = @_;
175 return ($path_name =~ /^coregrind\//) ? 1 : 0;
182 my ($path_name) = @_;
185 return 1 if ($path_name =~ /^$tool\//);
194 my ($path_name) = @_;
196 my $file = basename($path_name);
216 my ($path_name) = @_;
217 my $file = basename($path_name);
219 foreach my $inc (get_included_files($path_name)) {
223 error("File $path_name must not include $inc\n");
226 if (($inc eq "valgrind.h") && ($path_name ne "include/pub_tool_clreq.h")) {
227 error("File $path_name should include pub_tool_clreq.h instead of $inc\n");
233 error("File $path_name must not use vg_assert\n");
238 error("File $path_name must not use VG_(core_panic)\n");
246 my ($path_name) = @_;
247 my $file = basename($path_name);
249 foreach my $inc (get_included_files($path_name)) {
256 error("File $path_name must not include $inc\n");
261 error("File $path_name should include pub_core_clreq.h instead of $inc\n");
267 error("File $path_name must not use tl_assert\n");
274 if (($path_name eq "coregrind/m_libcassert.c") &&
278 error("File $path_name must not use VG_(tool_panic)\n");
287 my ($path_name) = @_;
288 my $file = basename($path_name);
290 foreach my $inc (get_included_files($path_name)) {
294 error("File $path_name must not include $inc\n");
297 if ($inc eq "valgrind.h" && ! $tool_export_header{$path_name}) {
298 error("File $path_name should include pub_tool_clreq.h instead of $inc\n");
304 error("File $path_name must not use vg_assert\n");
309 error("File $path_name must not use VG_(core_panic)\n");
317 my ($path_name) = @_;
318 my $file = basename($path_name);
330 error("File $path_name does not instantiate MARK_STACK_NO_EXEC\n");
334 error("File $path_name instantiates MARK_STACK_NO_EXEC"
344 my ($path_name) = @_;
346 print "FILE = $path_name\n" if ($debug);
348 if (is_coregrind_export_header($path_name)) {
349 check_coregrind_export_header($path_name);
350 } elsif (is_coregrind_file($path_name)) {
351 check_coregrind_file($path_name);
352 } elsif (is_tool_file($path_name)) {
353 check_tool_file($path_name);
356 if ($path_name =~ /\.S$/) {
357 check_assembler_file($path_name);