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

realtime: added support for managed_irq #255

Merged
merged 1 commit into from Mar 23, 2020

Conversation

yarda
Copy link
Contributor

@yarda yarda commented Mar 20, 2020

No description provided.

@yarda yarda changed the title Rhbz1797025 realtime: added support for managed_irq Mar 20, 2020
tuned/profiles/functions/base.py Outdated Show resolved Hide resolved
@yarda yarda force-pushed the rhbz1797025 branch 2 times, most recently from 49fa2bd to e8c1c0d Compare March 23, 2020 13:37
@yarda
Copy link
Contributor Author

yarda commented Mar 23, 2020

Made 4 arguments mandatory (upon discussion on IRC).

Also added regex_search_ternary built-in function.

It takes arguments in the following form:
  STR1, REGEX, STR2, STR3

If REGEX matches STR1 (re.search is used), STR2 is returned,
if it doesn't match STR3 is returned.

Example:
[variables]
foo=Y
bar=${f:regex_search_ternary:${foo}:\b[y,Y,1,t,T]\b:foo:bar}

It will result in the 'foo' string stored in the '${bar}' variable.

Resolves: rhbz#1797025

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
@yarda
Copy link
Contributor Author

yarda commented Mar 23, 2020

Thanks, merging.

@yarda yarda merged commit 751cdb4 into redhat-performance:master Mar 23, 2020
@yarda yarda deleted the rhbz1797025 branch June 18, 2020 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants