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

Fix tracepoint matching #15031

Merged
merged 1 commit into from
May 9, 2022
Merged

Fix tracepoint matching #15031

merged 1 commit into from
May 9, 2022

Conversation

keithc-ca
Copy link
Contributor

For example, before this change:

  • these two options do the same thing even though there is no group named staticmethodsXXXX:
  "-Xtrace:print=mt,methods=java/lang/System.*,trigger=group{staticmethods,jstacktrace}"
  "-Xtrace:print=mt,methods=java/lang/System.*,trigger=group{staticmethodsXXXX,jstacktrace}"
  • encountering tracepoint j9utilcore.0 would trigger a java core if this option is used
  "-Xtrace:trigger=tpnid{j9util.0,javadump}"

Don't match abbreviated trace component names: use j9_cmdla_stricmp() instead of j9_cmdla_strnicmp() where appropriate.

Also remove redundant, inappropriate casts.

For example, before this change:
* these two options do the same thing even though there is no group
  named "staticmethodsXXXX":
	"-Xtrace:print=mt,methods=java/lang/System.*,trigger=group{staticmethods,jstacktrace}"
	"-Xtrace:print=mt,methods=java/lang/System.*,trigger=group{staticmethodsXXXX,jstacktrace}"

* encountering tracepoint "j9utilcore.0" would trigger a java core
  if this option is used
	"-Xtrace:trigger=tpnid{j9util.0,javadump}"

Don't match abbreviated trace component names: use j9_cmdla_stricmp()
instead of j9_cmdla_strnicmp() where appropriate.

Also remove redundant, inappropriate casts.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@keithc-ca keithc-ca requested a review from pshipton May 9, 2022 18:14
@pshipton
Copy link
Member

pshipton commented May 9, 2022

jenkins compile win jdk8

@pshipton
Copy link
Member

pshipton commented May 9, 2022

Internal testing via 28455 looks good.

@pshipton pshipton merged commit 381e8c7 into eclipse-openj9:master May 9, 2022
@keithc-ca keithc-ca deleted the tpnid branch May 9, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants