Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Fix false results and add Fedora support #2784

Merged
Merged
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
2 changes: 1 addition & 1 deletion perf/perf_duplicate_probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setUp(self):
if 'Ubuntu' in distro_name:
deps.extend(['linux-tools-common', 'linux-tools-%s' %
platform.uname()[2]])
elif distro_name in ['rhel', 'SuSE']:
elif distro_name in ['rhel', 'SuSE', 'fedora', 'centos']:
deps.extend(['perf'])
else:
self.cancel("Install the package for perf supported\
Expand Down
2 changes: 1 addition & 1 deletion perf/perf_script_bug.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def setUp(self):
parser.read(self.get_data('probe.cfg'))
self.perf_probe = parser.get(detected_distro.name, 'probepoint')
deps = ['gcc', 'make']
if detected_distro.name in ['rhel', 'SuSE']:
if detected_distro.name in ['rhel', 'SuSE', 'fedora', 'centos']:
deps.extend(['perf'])
elif detected_distro.name in ['Ubuntu']:
deps.extend(['linux-tools-common', 'linux-tools-%s' %
Expand Down
2 changes: 2 additions & 0 deletions perf/perf_script_bug.py.data/probe.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ probepoint = 3
probepoint = 3
[Ubuntu]
probepoint = 3
[fedora]
probepoint = 3
4 changes: 3 additions & 1 deletion perf/perf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ def setUp(self):
deps.extend(['perf', 'gcc-c++'])
if 'SuSE' in detected_distro.name:
deps.extend(['kernel-default-debuginfo'])
elif 'fedora' in detected_distro.name:
deps.extend(['clang', 'kernel-debuginfo'])
else:
deps.extend(['clang', 'kernel-debuginfo',
'perf-debuginfo'])
else:
self.cancel("Install the package for perf supported\
by %s" % detected_distro.name)
if run_type == 'upstream':
if 'rhel' in detected_distro.name:
if detected_distro.name in ['rhel', 'fedora']:
deps.extend(['systemtap-sdt-devel', 'slang-devel',
'perl-ExtUtils-Embed', 'libcap-devel',
'numactl-devel', 'libbabeltrace-devel',
Expand Down
Loading