Fix a regression: attach process PMCs to the process created when
a command line is specified.
This commit is contained in:
parent
5467322086
commit
165b10b07b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180148
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2003-2007, Joseph Koshy
|
||||
* Copyright (c) 2003-2008, Joseph Koshy
|
||||
* Copyright (c) 2007 The FreeBSD Foundation
|
||||
* All rights reserved.
|
||||
*
|
||||
@ -1144,7 +1144,7 @@ main(int argc, char **argv)
|
||||
err(EX_OSERR, "ERROR: Cannot retrieve driver statistics");
|
||||
|
||||
/* Attach process pmcs to the target process. */
|
||||
if (args.pa_flags & FLAG_HAS_TARGET) {
|
||||
if (args.pa_flags & (FLAG_HAS_TARGET | FLAG_HAS_COMMANDLINE)) {
|
||||
if (SLIST_EMPTY(&args.pa_targets))
|
||||
errx(EX_DATAERR, "ERROR: No matching target "
|
||||
"processes.");
|
||||
|
Loading…
Reference in New Issue
Block a user