Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(144)

Issue 6326047: Fix regexes for importing Linux perf events (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by sheu
Modified:
11 years, 10 months ago
Reviewers:
Sam Leffler, nduca
CC:
trace-viewer-review_googlegroups.com
Base URL:
https://trace-viewer.googlecode.com/svn/trunk
Visibility:
Public.

Description

In the case of an event with a timestamp of five-digit seconds or greater, the kernel 3.4-style regex will erroneously match a pre-3.4 event trace. Also, replace a bunch of ".+" with "\w+" and some other more specific regexes. BUG=none TEST=local build, run on x86 Committed: https://code.google.com/p/trace-viewer/source/detail?r=55

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix some more fundamental errors with event parsing #

Patch Set 3 : Retrying after a rebase.w #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -40 lines) Patch
M src/linux_perf_importer.js View 1 2 15 chunks +21 lines, -36 lines 0 comments Download
M src/unittest.js View 1 2 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 14
sheu
Some changes I'm picking up along the way.
11 years, 10 months ago (2012-06-22 18:41:12 UTC) #1
Sam Leffler
run unit tests? http://codereview.appspot.com/6326047/diff/1/src/linux_perf_importer.js File src/linux_perf_importer.js (left): http://codereview.appspot.com/6326047/diff/1/src/linux_perf_importer.js#oldcode843 src/linux_perf_importer.js:843: case 'i915_gem_object_change_domain': did you lose gem_object_change_domain ...
11 years, 10 months ago (2012-06-22 18:47:08 UTC) #2
sheu
Right, unit tests. I ran them and they're failing. They're also failing at ToT with ...
11 years, 10 months ago (2012-06-22 18:53:52 UTC) #3
Sam Leffler
LGTM
11 years, 10 months ago (2012-06-22 19:17:02 UTC) #4
sheu
While looking into the pre-existing unit test failures, I fixed more bugs. Please re-review. Also, ...
11 years, 10 months ago (2012-06-22 21:32:45 UTC) #5
sheu
Updating description.
11 years, 10 months ago (2012-06-22 21:35:33 UTC) #6
Sam Leffler
LGTM
11 years, 10 months ago (2012-06-22 22:15:56 UTC) #7
nduca
@sheu, would you mind doing a followup and add some unit tests for the changes ...
11 years, 10 months ago (2012-06-24 23:52:14 UTC) #8
sheu
So... I talked to Sam, and my changes were made against an old version of ...
11 years, 10 months ago (2012-06-25 08:18:37 UTC) #9
sheu
So... I talked to Sam, and my changes were made against an old version of ...
11 years, 10 months ago (2012-06-25 08:18:37 UTC) #10
nduca
Ah, I see. So these are mostly style cleanups?
11 years, 10 months ago (2012-06-25 09:37:33 UTC) #11
Sam Leffler
His changes improve/tighten up parsing (e.g. handling hex values with \w instead of .+). On ...
11 years, 10 months ago (2012-06-25 16:18:12 UTC) #12
sheu
Yep. I thought I had something big (and at the revision I was at, it ...
11 years, 10 months ago (2012-06-25 17:28:16 UTC) #13
nduca
11 years, 10 months ago (2012-06-25 17:47:48 UTC) #14
Oh, okay! I get it. Sorry about the confusion, and thank you very much for your
contributions. :)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b