Add .ovnistream suffix to streams
This commit is contained in:
parent
b3e6c21b7c
commit
a4f235dd97
@ -61,11 +61,11 @@ create_trace_stream(void)
|
|||||||
{
|
{
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
||||||
int written = snprintf(path, PATH_MAX, "%s/thread.%d",
|
int written = snprintf(path, PATH_MAX, "%s/thread.%d.ovnistream",
|
||||||
rproc.procdir, rthread.tid);
|
rproc.procdir, rthread.tid);
|
||||||
|
|
||||||
if (written >= PATH_MAX)
|
if (written >= PATH_MAX)
|
||||||
die("thread trace path too long: %s/thread.%d\n",
|
die("thread trace path too long: %s/thread.%d.ovnistream\n",
|
||||||
rproc.procdir, rthread.tid);
|
rproc.procdir, rthread.tid);
|
||||||
|
|
||||||
rthread.streamfd = open(path, O_WRONLY | O_CREAT, 0644);
|
rthread.streamfd = open(path, O_WRONLY | O_CREAT, 0644);
|
||||||
|
Loading…
Reference in New Issue
Block a user