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

Improve drcachesim -indir and -outdir docs: directory contents are internal #6786

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

xdje42
Copy link
Contributor

@xdje42 xdje42 commented Apr 19, 2024

If the user happens to, for example, create a file in this directory then drcachesim will complain that it doesn't understand the file. Warn the user that the contents of these directories are internal to the tool.

…ories

If the user happens to, for example, create a file in this directory then
drcachesim will complain that it doesn't understand the file.
Warn the user that the contents of these directories are internal to the tool.
clients/drcachesim/common/options.cpp Show resolved Hide resolved
@@ -72,7 +72,8 @@ droption_t<std::string> op_ipc_name(
droption_t<std::string> op_outdir(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve -indir,-outdir docs, directory contents are internal

grammar: a comma cannot connect separate sentences: replace with a colon or similar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That it's technically bad grammer is left as a given.
That this level of grammar correctness is required is new ... noted for future reference. :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comma is still there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which comma? The comma in "Improve drcachesim -indir and -outdir docs, directory contents are internal" ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, see the original review request. Oh I see now that there was another comma which maybe caused confusion though asking for the colon should disambiguate: my original request is s/docs,/docs:/.

clients/drcachesim/common/options.cpp Show resolved Hide resolved
@xdje42 xdje42 changed the title Improve -indir,-outdir docs, directory contents are internal Improve drcachesim -indir and -outdir docs, directory contents are internal May 3, 2024
@xdje42
Copy link
Contributor Author

xdje42 commented May 8, 2024

Ping

@derekbruening
Copy link
Contributor

Ping

Normally you'd click on the re-request review to indicate it's ready for a look: otherwise the reviewer will assume it's still being worked on.

@derekbruening
Copy link
Contributor

Ping

Normally you'd click on the re-request review to indicate it's ready for a look: otherwise the reviewer will assume it's still being worked on.

Please see https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review

@xdje42 xdje42 requested a review from derekbruening May 8, 2024 17:02
@@ -1146,6 +1146,8 @@ $ bin64/drrun -t drcachesim -indir drmemtrace.app.pid.xxxx.dir/

The direct results of the \p -offline run are raw, compacted files, stored
in a \p raw/ subdirectory of the \p drmemtrace.app.pid.xxxx.dir directory.
The contents of this directory are internal to the tool. Do not alter, add,
or delete files here.
The \p -indir option both converts the data to a canonical trace form and
passes the resulting data to the cache simulator. The canonical trace data
is stored by \p -indir in a \p trace/ subdirectory inside the \p
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same warning applies to the trace/ subdir too. (Or clarify the above to explicitly state it's talking about the outer dir and not the raw/ subdir.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about say that the contents of drmemtrace.app.pid.xxxx.dir, and all its subdirectories, are internal to the tool ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@xdje42 xdje42 changed the title Improve drcachesim -indir and -outdir docs, directory contents are internal Improve drcachesim -indir and -outdir docs: directory contents are internal May 28, 2024
@xdje42 xdje42 requested a review from derekbruening May 28, 2024 21:53
@@ -1147,6 +1147,8 @@ $ bin64/drrun -t drmemtrace -indir drmemtrace.app.pid.xxxx.dir/

The direct results of the \p -offline run are raw, compacted files, stored
in a \p raw/ subdirectory of the \p drmemtrace.app.pid.xxxx.dir directory.
The contents of \p drmemtrace.app.pid.xxxx.dir, and all its subdirectories,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: missing "the": s/of/of the/
(be consistent with all the other references such as line 1149 and line 1154 which have "the")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd expect the sole addition of "the" here to be bad grammar.
The other instances you point out say "... of the drmemtrace.app.pid.xxxx.dir directory",
whereas here the wording is "... of drmemtrace.app.pid.xxxx.dir".
Shall I add "directory" as well ? [gotta get the grammar correct! :-)]

i.e., "The contents of the \p drmemtrace.app.pid.xxx.dir directory, and all its subdirectories, ..."

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah agreed, must have read it as the same as the others: good as-is or with "the ... directory".

@@ -72,7 +72,8 @@ droption_t<std::string> op_ipc_name(
droption_t<std::string> op_outdir(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the rebranding of the framework as "drmemtrace" (because "drcachesim" is just one tool inside the framework), best to s/drcachesim/drmemtrace/ in the PR title and description.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except that these docs are specifically for drcachesim?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, these docs are not for the drcachesim simulator: they are for the drmemtrace framework's tracer and post-processor and front-end for running a variety of tools (just one of which is drcachesim).

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