<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12482</bug_id>
          
          <creation_ts>2018-01-15 03:13:25 +0000</creation_ts>
          <short_desc>perf: Add PACKAGECONFIGs for auto-detected features such as libaudit</short_desc>
          <delta_ts>2025-09-18 14:55:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>2.5</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>anh.nguyen.pv</cc>
    
    <cc>anilrath51</cc>
    
    <cc>cody.yu</cc>
    
    <cc>david.reyna</cc>
    
    <cc>nayakksanjay</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tom.zanussi</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79068</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-01-15 03:13:25 +0000</bug_when>
    <thetext>Perf can be optionally build with many features:

Auto-detecting system features:
...                         dwarf: [ on  ]
...            dwarf_getlocations: [ on  ]
...                         glibc: [ on  ]
...                          gtk2: [ OFF ]
...                      libaudit: [ OFF ]
...                        libbfd: [ on  ]
...                        libelf: [ on  ]
...                       libnuma: [ OFF ]
...        numa_num_possible_cpus: [ OFF ]
...                       libperl: [ on  ]
...                     libpython: [ on  ]
...                      libslang: [ on  ]
...                     libcrypto: [ on  ]
...                     libunwind: [ on  ]
...            libdw-dwarf-unwind: [ on  ]
...                          zlib: [ on  ]
...                          lzma: [ on  ]
...                     get_cpuid: [ OFF ]
...                           bpf: [ on  ]


The perf recipe has partial PACKAGECONFIG feature support.

Investigate and if needed add support for libaudit, *numa*, get_cpuid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83883</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2019-05-22 20:54:20 +0000</bug_when>
    <thetext>Although perf is a bit complex, this could be a beginner/intro bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98507</commentid>
    <comment_count>2</comment_count>
    <who name="K Sanjay Nayak">nayakksanjay</who>
    <bug_when>2024-03-17 15:43:06 +0000</bug_when>
    <thetext>Hi Randy/Bruce,

I&apos;ve noticed that this issue has been raised quite some time ago.

Below is the most recent log of auto-detection from the do_compile process in perf.

Auto-detecting system features:
...                                   dwarf: [ on  ]
...                      dwarf_getlocations: [ on  ]
...                                   glibc: [ on  ]
...                                  libbfd: [ on  ]
...                          libbfd-buildid: [ on  ]
...                                  libcap: [ on  ]
...                                  libelf: [ on  ]
...                                 libnuma: [ OFF ]
...                  numa_num_possible_cpus: [ OFF ]
...                                 libperl: [ OFF ]
...                               libpython: [ on  ]
...                               libcrypto: [ on  ]
...                               libunwind: [ on  ]
...                      libdw-dwarf-unwind: [ on  ]
...                                    zlib: [ on  ]
...                                    lzma: [ on  ]
...                               get_cpuid: [ on  ]
...                                     bpf: [ on  ]
...                                  libaio: [ on  ]
...                                 libzstd: [ on  ]
...                               backtrace: [ on  ]
...                                 eventfd: [ on  ]
...                          fortify-source: [ on  ]
...                    get_current_dir_name: [ on  ]
...                                  gettid: [ on  ]
...                       libelf-getphdrnum: [ on  ]
...                     libelf-gelf_getnote: [ on  ]
...                    libelf-getshdrstrndx: [ on  ]
...                                libslang: [ on  ]
...                 libslang-include-subdir: [ OFF ]
...                           libtraceevent: [ on  ]
...                              libtracefs: [ OFF ]
...             pthread-attr-setaffinity-np: [ on  ]
...                         pthread-barrier: [ on  ]
...                            reallocarray: [ on  ]
...                      stackprotector-all: [ on  ]
...                                 timerfd: [ on  ]
...                               scandirat: [ on  ]
...                            sched_getcpu: [ on  ]
...                                     sdt: [ OFF ]
...                                   setns: [ on  ]
...                  disassembler-four-args: [ on  ]
...                disassembler-init-styled: [ on  ]
...                             file-handle: [ on  ]
...                                  bionic: [ OFF ]
...                              compile-32: [ OFF ]
...                             compile-x32: [ OFF ]
...                          cplus-demangle: [ OFF ]
...                            cxa-demangle: [ on  ]
...                                    gtk2: [ OFF ]
...                            gtk2-infobar: [ OFF ]
...                                   hello: [ OFF ]
...                           libbabeltrace: [ OFF ]
...                          libbfd-liberty: [ OFF ]
...                        libbfd-liberty-z: [ OFF ]
...                              libopencsd: [ OFF ]
...                           libunwind-x86: [ OFF ]
...                        libunwind-x86_64: [ OFF ]
...                           libunwind-arm: [ OFF ]
...                       libunwind-aarch64: [ OFF ]
...                   libunwind-debug-frame: [ OFF ]
...               libunwind-debug-frame-arm: [ OFF ]
...           libunwind-debug-frame-aarch64: [ OFF ]
...                                     cxx: [ OFF ]
...                                    llvm: [ OFF ]
...                            llvm-version: [ OFF ]
...                                   clang: [ OFF ]
...                                  libbpf: [ OFF ]
...      libbpf-btf__load_from_kernel_by_id: [ OFF ]
...                    libbpf-bpf_prog_load: [ OFF ]
...         libbpf-bpf_object__next_program: [ OFF ]
...             libbpf-bpf_object__next_map: [ OFF ]
...           libbpf-bpf_program__set_insns: [ OFF ]
...                   libbpf-bpf_create_map: [ OFF ]
...                                 libpfm4: [ OFF ]
...                           libdebuginfod: [ on  ]
...                         clang-bpf-co-re: [ OFF ]

Do we need to add support for once with &quot;OFF&quot; in Autodetect ?

Thanks
Sanjay :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98512</commentid>
    <comment_count>3</comment_count>
    <who name="Anh Nguyen">anh.nguyen.pv</who>
    <bug_when>2024-03-18 03:39:18 +0000</bug_when>
    <thetext>Hi all,

I am a new comer and I would like to investigate this ticket.
But I don&apos;t know how to list out the &quot;Auto-detecting system features:&quot; as your comment.

I tried &quot;bitbake -f -c compile perf -DDD&quot;
Could you please share me the command to list out the &quot;Auto-detecting system features:&quot;

Thank you
Anh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98526</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-03-19 00:41:20 +0000</bug_when>
    <thetext>Anil has worked on the libaudit change and has a patch mostly ready to review.

Anil, Please post the patch to the oe-core list and CC people asking about it here. 

Anil asked about how to test that perf is supporting libaudit and unfortunately, I don&apos;t know off-hand. If you want to compare to a perf that seems to support libaudit, check out the debian perf: https://packages.debian.org/bullseye/linux-perf-5.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98535</commentid>
    <comment_count>5</comment_count>
      <attachid>5032</attachid>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-03-19 18:23:13 +0000</bug_when>
    <thetext>Created attachment 5032
Anil&apos;s libaudit patch

I attached Anil&apos;s patch that he sent to me privately in Jan 2024.
I hope you don&apos;t mind me sharing it Anil.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100870</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-06 16:25:28 +0000</bug_when>
    <thetext>Needs some kernel knowledge. 
If anyone wants to work on this please ask for help from me and I&apos;ll try to make time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102797</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-09-18 14:55:44 +0000</bug_when>
    <thetext>It has been a while and no one has implemented this enhancment.
I can only conclude that it&apos;s a &apos;nice-to-have&apos; feature rather than a real need.

If anyone has a real need to enhance how perf is configure, 
they can send a patch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5032</attachid>
            <date>2024-03-19 18:23:13 +0000</date>
            <delta_ts>2024-03-19 18:23:13 +0000</delta_ts>
            <desc>Anil&apos;s libaudit patch</desc>
            <filename>libaudit.patch</filename>
            <type>text/plain</type>
            <size>2960</size>
            <attacher name="Randy MacLeod">randy.macleod</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL21ldGEvcmVjaXBlcy1rZXJuZWwvcGVyZi9wZXJmLmJiIGIvbWV0YS9yZWNp
cGVzLWtlcm5lbC9wZXJmL3BlcmYuYmIKaW5kZXggMzI4ODJhZmRmNC4uYWRhNmJkMDI3OCAxMDA2
NDQKLS0tIGEvbWV0YS9yZWNpcGVzLWtlcm5lbC9wZXJmL3BlcmYuYmIKKysrIGIvbWV0YS9yZWNp
cGVzLWtlcm5lbC9wZXJmL3BlcmYuYmIKQEAgLTEwLDcgKzEwLDcgQEAgSE9NRVBBR0UgPSAiaHR0
cHM6Ly9wZXJmLndpa2kua2VybmVsLm9yZy9pbmRleC5waHAvTWFpbl9QYWdlIgogTElDRU5TRSA9
ICJHUEwtMi4wLW9ubHkiCiAKIAotUEFDS0FHRUNPTkZJRyA/Pz0gInB5dGhvbiB0dWkgbGlidW53
aW5kIGxpYnRyYWNlZXZlbnQiCitQQUNLQUdFQ09ORklHID8/PSAiIHNjcmlwdGluZyBweXRob24z
IHR1aSBsaWJ1bndpbmQgbGlidHJhY2VldmVudCAiCiBQQUNLQUdFQ09ORklHW2R3YXJmXSA9ICIs
Tk9fRFdBUkY9MSIKIFBBQ0tBR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