Skip to content
Snippets Groups Projects
Select Git revision
  • 15f5d201c1773297b38a11a0064be76a224d073d
  • add-visl-stable-frames default
  • add-vdpu381-and-383-to-rkvdec-v3
  • add-rknpu
  • arm-dts-add-rkvdec-v2
  • add-vdpu381-and-383-to-rkvdec-v2
  • add-v4l2-st-lt-ref-set-support-v3
  • add-vdpu381-and-383-to-rkvdec
  • prepare-add-vdpu381-and-383-to-rkvdec
  • add-rkvdec2-driver-vdpu383-hevc
  • add-rkvdec2-driver-vdpu383
  • add-rkvdec2-driver-hevc
  • rkvdec-mov-to-structs
  • av1-fix-postproc-leak
  • add-rkvdec2-driver-iommu-422-10bits
  • patch-queue/jamba/trixie
  • hdmi-fix-1080p-rock4d-6.11
  • upstreaming/rk3576-rock4d-spi-v1
  • upstreaming/rk3576-rock4d-support-v5
  • upstreaming/rk3588-hdmi-audio-6
  • upstreaming/rk3576-rock4d-support-v3
  • upstreaming/rk3576-rock4d-support-v1
  • v6.3
  • v6.3-rc1
  • v6.2-rc1
  • v6.0-rc1
  • v5.19-rc3
  • v5.19-rc2
  • v5.19-rc1
  • v5.18
  • v5.18-rc7
  • v5.18-rc6
  • v5.18-rc5
  • v5.18-rc4
  • v5.18-rc3
  • v5.18-rc2
  • v5.18-rc1
  • v5.17
  • v5.17-rc8
  • v5.17-rc7
  • v5.17-rc6
  • v5.17-rc5
42 results

get_abi.pl

Blame
  • user avatar
    Mauro Carvalho Chehab authored and Greg Kroah-Hartman committed
    Instead of adding titles just for the files, add titles
    for each part of the ABI output, in order to make easier
    to search for a symbol there.
    
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
    Link: https://lore.kernel.org/r/64752a5de06ab8263c296e3ed01414b25861e1eb.1604312590.git.mchehab+huawei@kernel.org
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    9d4fdda3
    History
    get_abi.pl 14.31 KiB
    #!/usr/bin/perl
    # SPDX-License-Identifier: GPL-2.0
    
    use strict;
    use warnings;
    use utf8;
    use Pod::Usage;
    use Getopt::Long;
    use File::Find;
    use Fcntl ':mode';
    
    my $help = 0;
    my $man = 0;
    my $debug = 0;
    my $enable_lineno = 0;
    my $prefix="Documentation/ABI";
    
    #
    # If true, assumes that the description is formatted with ReST
    #
    my $description_is_rst = 1;
    
    GetOptions(
    	"debug|d+" => \$debug,
    	"enable-lineno" => \$enable_lineno,
    	"rst-source!" => \$description_is_rst,
    	"dir=s" => \$prefix,
    	'help|?' => \$help,
    	man => \$man
    ) or pod2usage(2);
    
    pod2usage(1) if $help;
    pod2usage(-exitstatus => 0, -verbose => 2) if $man;
    
    pod2usage(2) if (scalar @ARGV < 1 || @ARGV > 2);
    
    my ($cmd, $arg) = @ARGV;
    
    pod2usage(2) if ($cmd ne "search" && $cmd ne "rest" && $cmd ne "validate");
    pod2usage(2) if ($cmd eq "search" && !$arg);
    
    require Data::Dumper if ($debug);
    
    my %data;
    my %symbols;
    
    #
    # Displays an error message, printing file name and line
    #
    sub parse_error($$$$) {
    	my ($file, $ln, $msg, $data) = @_;
    
    	$data =~ s/\s+$/\n/;
    
    	print STDERR "Warning: file $file#$ln:\n\t$msg";
    
    	if ($data ne "") {
    		print STDERR ". Line\n\t\t$data";
    	} else {
    	    print STDERR "\n";
    	}
    }
    
    #
    # Parse an ABI file, storing its contents at %data
    #
    sub parse_abi {
    	my $file = $File::Find::name;
    
    	my $mode = (stat($file))[2];