-
Notifications
You must be signed in to change notification settings - Fork 82
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
Trace refactored #116
Trace refactored #116
Conversation
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
I have tested this locally repeatedly ( However I have a few comments:
@sknat could you take a look and do a quick review as well? |
@ondrej-fabry here are some of my thoughts:
|
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
Following up on the discussion we had last week - sorry for the really long review cycle -
That said I think we can move ahead with this patch as is, and evolve it when adding other usecases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
Signed-off-by: Vladimir Lavor <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks
Signed-off-by: Vladimir Lavor <[email protected]>
The way how the API trace is initialized was changed - the trace is no longer initialized (and immediately disabled) by the connection. Instead, the user creates a new trace object and bounds it to a connection.
API changes:
Trace()
method.Enable(bool)
was removed from theTrace
API. Instead, the methodNewTrace(connection, size)
is added.Close()
to release resources used by the tracer.Workflow changes:
vppClient.SendMsg
and the succeeded/failed status of the message is recordedGetRecords
waits until all incoming messages are processed before returning the listSigned-off-by: Vladimir Lavor [email protected]