- Timestamp:
- Jul 12, 2021, 1:44:35 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 605673f, 9345684
- Parents:
- cf444b6 (diff), a953c2e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gdb/utils-gdb.py
rcf444b6 r6ff08d8 53 53 return CfaTypes(cluster_ptr = gdb.lookup_type('struct cluster').pointer(), 54 54 processor_ptr = gdb.lookup_type('struct processor').pointer(), 55 thread_ptr = gdb.lookup_type('struct $thread').pointer(),55 thread_ptr = gdb.lookup_type('struct thread$').pointer(), 56 56 int_ptr = gdb.lookup_type('int').pointer(), 57 57 thread_state = gdb.lookup_type('enum __Coroutine_State'), … … 163 163 164 164 def thread_for_pthread(pthrd): 165 return tls_for_pthread(pthrd)['_X11this_threadVPS7 $thread_1']165 return tls_for_pthread(pthrd)['_X11this_threadVPS7thread$_1'] 166 166 167 167 def thread_for_proc(proc): 168 return tls_for_proc(proc)['_X11this_threadVPS7 $thread_1']168 return tls_for_proc(proc)['_X11this_threadVPS7thread$_1'] 169 169 170 170 … … 216 216 217 217 cfa_t = get_cfa_types() 218 root = cluster['_X7threadsS8__dllist_S7 $thread__1']['_X4headPY15__TYPE_generic__1'].cast(cfa_t.thread_ptr)218 root = cluster['_X7threadsS8__dllist_S7thread$__1']['_X4headPY15__TYPE_generic__1'].cast(cfa_t.thread_ptr) 219 219 220 220 if root == 0x0 or root.address == 0x0: … … 313 313 )) 314 314 tls = tls_for_proc( processor ) 315 thrd = tls['_X11this_threadVPS7 $thread_1']315 thrd = tls['_X11this_threadVPS7thread$_1'] 316 316 if thrd != 0x0: 317 317 tname = '{} {}'.format(thrd['self_cor']['name'].string(), str(thrd)) -
tools/perf/process_stat_array.py
rcf444b6 r6ff08d8 31 31 with open(os.path.join(root, filename), 'r') as file: 32 32 for line in file: 33 data = [int(x.strip()) for x in line.split(',')] 33 # data = [int(x.strip()) for x in line.split(',')] 34 data = [int(line.strip())] 34 35 data = [me, *data] 35 36 merged.append(data) … … 53 54 54 55 # merge the data 55 for (me, time, value) in merged: 56 # for (me, time, value) in merged: 57 for (me, value) in merged: 56 58 # check now much this changes 57 59 old = counters[me] … … 61 63 # add change to the current 62 64 curr = curr + change 63 single.append( (time, curr))65 single.append( value ) 64 66 65 67 pass 66 68 69 print(single) 70 71 # single = sorted(single)[:len(single)-100] 72 # ms = max(single) 73 # single = [float(x) / 2500.0 for x in single] 74 67 75 #print 68 for t, v in single: 69 print([t, v]) 76 # for t, v in single: 77 # print([t, v]) 78 # print(len(single)) 79 # print(max(single)) 80 # print(min(single)) 81 82 # bins = [0, 5.37751600e+04, 1.06903320e+05, 1.60031480e+05, 2.13159640e+05, 2.66287800e+05, 3.19415960e+05, 3.72544120e+05, 4.25672280e+05, 4.78800440e+05, 5.31928600e+05, 5.85056760e+05, 6.38184920e+05, 6.91313080e+05, 7.44441240e+05, 7.97569400e+05, 8.50697560e+05, 9.03825720e+05, 9.56953880e+05, 1.01008204e+06, 1.06321020e+06, 1.11633836e+06, 1.16946652e+06, 1.22259468e+06, 1.27572284e+06, 1.32885100e+06, 1.38197916e+06, 1.43510732e+06, 1.48823548e+06, 1.54136364e+06, 1.59449180e+06, 1.64761996e+06, 1.70074812e+06, 1.75387628e+06, 1.80700444e+06, 1.86013260e+06, 1.91326076e+06, 1.96638892e+06, 2.01951708e+06, 2.07264524e+06, 2.12577340e+06, 2.17890156e+06, 2.23202972e+06, 2.28515788e+06, 2.33828604e+06, 2.39141420e+06, 2.44454236e+06, 2.49767052e+06, 2.55079868e+06, 2.60392684e+06, 3.0e+06] 83 # # bins = [float(x) / 2500.0 for x in bins] 84 # # print([round(b, 2) for b in bins]) 85 86 # import numpy 87 # # hist1, _ = numpy.histogram(single, density=True, bins=50) 88 # hist2, _ = numpy.histogram(single, density=True, bins=bins) 89 # # print(hist1) 90 # print([1000.0 * h for h in hist2]) 91 # # for v in single: 92 # # print([v]) -
tools/vscode/uwaterloo.cforall-0.1.0/syntaxes/cfa.tmLanguage.json
rcf444b6 r6ff08d8 206 206 "patterns": [ 207 207 { "match": "(\\b|^|\\s)(void|bool|char|short|int|long|signed|unsigned|float|double)(\\b|$|\\s)", "name": "storage.type.built-in.primitive.cfa"}, 208 { "match": "(\\b|^|\\s)(zero_t|one_t|size_t|ssize_t|intptr_t|uintptr_t| \\$thread|\\$coroutine|\\$generator|\\$monitor)(\\b|$|\\s)", "name": "storage.type.built-in.cfa"},208 { "match": "(\\b|^|\\s)(zero_t|one_t|size_t|ssize_t|intptr_t|uintptr_t|thread\\$|coroutine\\$|generator\\$|monitor\\$)(\\b|$|\\s)", "name": "storage.type.built-in.cfa"}, 209 209 { "match": "(\\b|^|\\s)(extern|static|inline|volatile|const|thread_local)(\\b|$|\\s)", "name": "storage.modifier.cfa"} 210 210 ]
Note:
See TracChangeset
for help on using the changeset viewer.