<?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>3343</bug_id>
          
          <creation_ts>2012-10-26 22:49:42 +0000</creation_ts>
          <short_desc>perf script: install audit-libs-python to get syscall name for syscall-displaying scripts</short_desc>
          <delta_ts>2018-03-20 03:30:39 +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>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          <blocked>3358</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Anuj Mittal">anuj.mittal</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>chin.kooi.khor</cc>
    
    <cc>dvhart</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
    
    <cc>tim.orling</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26985</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-10-26 22:49:42 +0000</bug_when>
    <thetext>Running the perf sctop script displays syscalls as raw numbers - it would be really helpful to see these as syscall names instead.  The message even tells us what to do to get them:

root@crownbay:~# perf script sctop
# ========
# captured on: Tue Feb  6 06:45:50 2018
# ========
#
Install the audit-libs-python package to get syscall names

syscall events:

event                                          count
----------------------------------------  ----------
3                                              12162
5                                               2138
6                                               1980
240                                             1150
4                                                573
197                                              116
195                                              115
220                                               82
45                                                75
192                                               66
174                                               66
91                                                40
295                                               39
13                                                32
142                                               19
196                                               15
140                                               11
54                                                 7
85                                                 6
265                                                5
181                                                5
180                                                5
221                                                4
19                                                 3
168                                                2
125                                                2
311                                                1
268                                                1
202                                                1
201                                                1
200                                                1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69097</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-12-13 20:05:00 +0000</bug_when>
    <thetext>Hi Tom,

I started to review this bug and found your thread to add perf live mode [1].

After try to use:

$ pref trace sctop

and

$ perf sctop script d

It didn&apos;t work on master, may be the issue is now invalid since has loaded some years ago.

Could you provide me an input?

Thanks in advance,
alimon

[1] https://lwn.net/Articles/381634/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69099</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-12-13 20:14:53 +0000</bug_when>
    <thetext>Changing the state to needinfo, because Anibal wants some input from Tom before moving on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70644</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-02-11 00:19:28 +0000</bug_when>
    <thetext>this issue is still valid, I just verified it with 2.3 master

You need to install both perf and perf-python and that will provide the sctop script.  As pointed out by Tom&apos;s initial entry we then need the python bindings for libaudit and libauparse, a quick search in meta-python and layers.openembedded.org did not show those libraries.

They are available here: http://people.redhat.com/sgrubb/audit/

Tim (added to Cc) might also know if they are available someplace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70645</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2017-02-11 05:47:03 +0000</bug_when>
    <thetext>Do we need to add these to OE-core?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70646</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2017-02-11 06:20:37 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/meta-selinux/tree/recipes-security/audit/audit_2.7.bb

However, latest upstream version is 2.7.1

I am working on the upgrade recipe, but need to know if we want to add it to core. My gut feeling is yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70647</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2017-02-11 06:25:17 +0000</bug_when>
    <thetext>Add meta-selinux maintainer (fray) to CC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70697</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-02-14 17:26:04 +0000</bug_when>
    <thetext>Tim, I think yes, we might want to add the audit info as it will help work with the perf which is part of OE-Core already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70935</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2017-02-24 18:13:40 +0000</bug_when>
    <thetext>I&apos;m looking at the audit 2.7.1 recipe.

It has the following:

        --with-libwrap \
        --with-libcap-ng=yes \
        --with-python=yes \
        --without-python3 \

Does anyone know if we should be building (optionally [pkgconfig] or otherwise) the python3 components for this work?

Once the component is configured correctly, then I can help get this back to oe-core if the work is in an acceptable condition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71467</commentid>
    <comment_count>9</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-03-20 17:43:49 +0000</bug_when>
    <thetext>I think since we do support python3 now it should probably be optionally included via PACKAGECONFIG.

This change is probably to late for 2.3, do I am going to move it to 2.4

This is possibly related to fixing Bug 3358 also, so I am going to mark it as blocks that one</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79226</commentid>
    <comment_count>10</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-01-26 07:21:51 +0000</bug_when>
    <thetext>I checked that this works with python3 and the syscall names also start coming up as expected after audit, audit-python is installed.

Tim, can you still help please move this recipe to OE-core? I am not very sure why --without-python3 is still there ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79234</commentid>
    <comment_count>11</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2018-01-26 16:30:37 +0000</bug_when>
    <thetext>meta-selinux has updated to 2.7.6:
http://git.yoctoproject.org/cgit/cgit.cgi/meta-selinux/log/recipes-security/audit/audit_2.7.6.bb

I&apos;ll try to take a look at the PKGCONFIG in the coming days, but it all depends on fray&apos;s buy off on the resulting recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79235</commentid>
    <comment_count>12</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2018-01-26 16:33:06 +0000</bug_when>
    <thetext>Please note that upstream version is 2.8.2:
&quot;The latest is 2.8.2, released Dec 14, 2017.&quot;
http://people.redhat.com/sgrubb/audit/index.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79708</commentid>
    <comment_count>13</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-03-05 17:21:35 +0000</bug_when>
    <thetext>Sent to list:

http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148102.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79865</commentid>
    <comment_count>14</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-03-20 03:30:39 +0000</bug_when>
    <thetext>http://git.openembedded.org/openembedded-core/commit/?id=c386abacae89a148e77ffa51630c7917e90406f9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>