Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1872704

Summary: Please update trace-cmd record to support --no-filter option as RHEL-7 does
Product: Red Hat Enterprise Linux 8 Reporter: Jiri Hladky <jhladky>
Component: trace-cmdAssignee: Jerome Marchand <jmarchan>
Status: CLOSED ERRATA QA Contact: Qiao Zhao <qzhao>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: bhu, cye, jhladky, jkacur, jvozar, kkolakow, pauld, qzhao, rt-maint, zsun
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: trace-cmd-2.7-9.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:10:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1680409    

Description Jiri Hladky 2020-08-26 13:19:14 UTC
Description of problem:

Please update trace-cmd record to support --no-filter option.

trace-cmd record in RHEL-7 supports --no-filter option:

RHEL-7 package:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=886630

* Tue Apr 23 2019 John Kacur <jkacur> - 2.7-2
- Optimize how pid filters are expresssed
- Add a --no-filter option
Resolves: rhbz#1472631

See also 
https://bugzilla.redhat.com/show_bug.cgi?id=1472631#c18

We need the same option (--no-filter) to be available in RHEL-8 as well. Could we please update trace-cmd record in RHEL-8?


Version-Release number of selected component (if applicable):
Name        : trace-cmd
Version     : 2.7
Release     : 8.el8
Architecture: x86_64


How reproducible:
trace-cmd record --no-filter -e sched:sched_migrate_task sleep 10

Actual results:
record: unrecognized option '--no-filter'


Expected results:
Succesfull trace-cmd record execution, same as in RHEL-7

Comment 1 Jiri Hladky 2020-08-26 13:22:01 UTC
FYI - we are using this to WA missing --no-filter option:

trace-cmd record -e sched:sched_migrate_task sleep 10 &
echo 0 > /sys/kernel/debug/tracing/events/sched/filter

Comment 11 errata-xmlrpc 2021-05-18 15:10:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (trace-cmd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1725