Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/linux_packages/manifests/linux_tools.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

class linux_packages::linux_tools {

package { 'linux-tools-generic':
ensure => present,
}

}
17 changes: 17 additions & 0 deletions modules/roles_profiles/manifests/profiles/linux_perf_profiling.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Installs the linux-tools package (provides `perf`) and grants cltbld
# sudo access to run it. Used by Linux talos roles to support performance
# profiling investigations (bug 2031822).
class roles_profiles::profiles::linux_perf_profiling {

require linux_packages::linux_tools

sudo::custom { 'allow_cltbld_perf':
user => 'cltbld',
command => '/usr/bin/perf',
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@

# talos stuff
include roles_profiles::profiles::gecko_t_linux_2404_talos_generic_worker

# perf profiling support (bug 2031822)
include roles_profiles::profiles::linux_perf_profiling
}
3 changes: 3 additions & 0 deletions modules/roles_profiles/manifests/roles/gecko_t_linux_talos.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@

# talos stuff
include ::roles_profiles::profiles::gecko_t_linux_talos_generic_worker

# perf profiling support (bug 2031822)
include ::roles_profiles::profiles::linux_perf_profiling
}