]> git.proxmox.com Git - pve-qemu.git/blame - debian/parse-cpu-flags.pl
Add format attributes to function candidates
[pve-qemu.git] / debian / parse-cpu-flags.pl
CommitLineData
376d9ce8
TL
1#!/usr/bin/perl
2
3use warnings;
4use strict;
5
6my @flags = ();
7my $got_flags_section;
8
9while (<STDIN>) {
10 if (/^\s*Recognized CPUID flags:/) {
11 $got_flags_section = 1;
12 next;
13 }
14 next if !$got_flags_section;
15
16 s/^\s+//;
17
18 push @flags, split(/\s+/);
19}
20
21die "no QEMU/KVM CPU flags detected from STDIN input" if scalar (@flags) <= 0;
22
23print join("\n", @flags) or die "$!\n";