<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I personally use this:</p>
<p>strace -p "$(cat
/sys/fs/cgroup/system.slice/httpd.service/{cgroup.procs,tasks})"</p>
Works for both cgroup versions.<br>
<p>On 11/24/21 09:34, Masatake YAMATO via Strace-devel wrote:</p>
<blockquote type="cite"
cite="mid:strace%2Fstrace%2Fissues%2F193%2F977648655@github.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<blockquote>
<p dir="auto">Yep.. I was just saying it would be a nice feature
to have in the same program without using external ones.</p>
</blockquote>
<p dir="auto">I agree with you if more than one program, pstree,
pidof, grep and/or sed are needed.<br>
However, I think just one, pgrep (or pidof) is acceptable.<br>
If strace introduces an option implementing the feature
requested here, the user must remember the option to enable the
feature.<br>
<code>[tab]</code> key with a modern shell may help us but
remembering the command fragment, <code>-p "$(...)"</code> is
not hard for me.</p>
<p dir="auto">I was directly taught this fragment by <a
class="user-mention" data-hovercard-type="user"
data-hovercard-url="/users/ldv-alt/hovercard"
data-octo-click="hovercard-link-click"
data-octo-dimensions="link_type:self"
href="https://github.com/ldv-alt" moz-do-not-send="true">@ldv-alt</a>,
the maintainer of strace!<br>
<a
href="https://lists.strace.io/pipermail/strace-devel/2018-March/007950.html"
rel="nofollow" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.strace.io/pipermail/strace-devel/2018-March/007950.html</a><br>
<a
href="https://lists.strace.io/pipermail/strace-devel/2018-March/007951.html"
rel="nofollow" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.strace.io/pipermail/strace-devel/2018-March/007951.html</a></p>
<p dir="auto">The lesson was not free. I had to submit a patch to
procps-ng as fee.<br>
<a
href="https://gitlab.com/procps-ng/procps/-/merge_requests/58"
rel="nofollow" moz-do-not-send="true"
class="moz-txt-link-freetext">https://gitlab.com/procps-ng/procps/-/merge_requests/58</a></p>
<p
style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>
You are receiving this because you are subscribed to this
thread.<br>
Reply to this email directly, <a
href="https://github.com/strace/strace/issues/193#issuecomment-977648655"
moz-do-not-send="true">view it on GitHub</a>, or <a
href="https://github.com/notifications/unsubscribe-auth/AOVBTR3SFUBKDHKP6Y65623UNSPSXANCNFSM5DM7G7EA"
moz-do-not-send="true">unsubscribe</a>.<br>
Triage notifications on the go with GitHub Mobile for <a
href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675"
moz-do-not-send="true">iOS</a> or <a
href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub"
moz-do-not-send="true">Android</a>.
<img
src="https://github.com/notifications/beacon/AOVBTR2E7A4EXCZUIHTK7ATUNSPSXA5CNFSM5DM7G7EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHJC3YDY.gif"
alt="" moz-do-not-send="true" width="1" height="1"></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/193#issuecomment-977648655",
"url": "https://github.com/strace/strace/issues/193#issuecomment-977648655",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>