MCPcopy Create free account

hub / github.com/PlatformLab/Arachne / functions

Functions336 in github.com/PlatformLab/Arachne

↓ 123 callersFunctionMatch
Matches the string with the pattern, caching the compiled regexp.
scripts/cpplint.py:645
↓ 120 callersFunctionSearch
Searches the string for the pattern, caching the compiled regexp.
scripts/cpplint.py:673
↓ 44 callersMethodgetCores
* See documentation in CorePolicy. */
src/DefaultCorePolicy.cc:84
↓ 38 callersMethodsize
Get the current number of elements in this CoreList.
src/CorePolicy.h:76
↓ 37 callersFunctionlimitedTimeWait
Helper function for tests with timing dependencies, so that we wait for a finite amount of time in the case of a bug causing an infinite loop.
src/ArachneTest.cc:121
↓ 35 callersFunctioncreateThreadOnCore
src/Arachne.h:494
↓ 32 callersMethodfind
Return the index of the given coreId, or -1 if it is not in the current list.
src/CorePolicy.h:96
↓ 19 callersMethodunlock
Release resource. */
src/Arachne.cc:1270
↓ 18 callersFunctioninit
* This function sets up state needed by the thread library, and must be * invoked before any other function in the thread library is invoked. It is
src/Arachne.cc:1079
↓ 16 callersMethodlock
* Attempt to acquire this resource and block if it is not available. */
src/Arachne.cc:1232
↓ 15 callersMethodNumLines
Returns the number of lines represented.
scripts/cpplint.py:1420
↓ 14 callersFunctionshutDown
* This call will cause all Arachne threads to terminate, and cause * waitForTermination() to return. * * It is typically used only for an applicati
src/Arachne.cc:1219
↓ 14 callersFunctionwaitForTermination
* This function must be called by the main application thread and will block * until Arachne is terminated via a call to shutDown(). * * Upon termi
src/Arachne.cc:840
↓ 12 callersMethodadd
Insert the Core Id at the back of this list.
src/CorePolicy.h:82
↓ 11 callersFunctionCloseExpression
If input points to ( or { or [ or <, finds the position that closes it. If lines[linenum][pos] points to a '(' or '{' or '[' or '<', finds the li
scripts/cpplint.py:1570
↓ 9 callersFunctionalignedAlloc
* Allocate a block of memory aligned at the beginning of a cache line. * * \param size * The amount of memory to allocate. * \param alignment
src/Arachne.cc:204
↓ 9 callersMethodcoreAvailable
* See documentation in CorePolicy. */
src/DefaultCorePolicy.cc:47
↓ 8 callersFunctionPrintUsage
Prints a brief usage string and exits, optionally with an error message. Args: message: The optional error message.
scripts/cpplint.py:5817
↓ 7 callersFunctiondispatch
* Deschedule the current thread until its wakeup time is reached (which may * have already happened) and find another thread to run. All direct and
src/Arachne.cc:575
↓ 6 callersFunctiongetCorePolicy
* Get the current core policy used by Arachne. This should be used only for * testing. */
src/Arachne.cc:1046
↓ 6 callersFunctionsetErrorStream
* Change the target of the error stream, allowing redirection to an * application's log. */
src/Arachne.cc:1427
↓ 6 callersFunctionsleep
* Sleep for at least ns nanoseconds. The amount of additional delay may be * impacted by other threads' activities such as blocking and yielding. */
src/Arachne.cc:538
↓ 6 callersFunctionyield
* This method is used as part of cooperative multithreading to give other * Arachne threads on the same core a chance to run. * It will return when
src/Arachne.cc:514
↓ 5 callersFunctionGetPreviousNonBlankLine
Return the most recent non-blank line and its line number. Args: clean_lines: A CleansedLines instance containing the file contents. linenu
scripts/cpplint.py:3601
↓ 5 callersFunctioncreateThread
src/Arachne.h:622
↓ 5 callersFunctionsetCoreCount
* This function tells the CoreArbiter the currently desired number of cores. */
src/Arachne.cc:1461
↓ 5 callersFunctionsignal
* Make the thread referred to by ThreadId runnable. * If one thread exits and another is created between the check and the setting * of the wakeup f
src/Arachne.cc:773
↓ 5 callersFunctionswapcontext
* Save the current register values onto one stack and load fresh register * values from another stack. * This method does not return to its caller i
src/Arachne.cc:362
↓ 4 callersFunctionIsHeaderExtension
(file_extension)
scripts/cpplint.py:568
↓ 4 callersFunctionParseNolintSuppressions
Updates the global list of line error-suppressions. Parses any NOLINT comments on the current line, updating the global error_suppressions store.
scripts/cpplint.py:571
↓ 4 callersMethodRepositoryName
FullName after removing the local path to the repository. If we have a real absolute path name here we can try to do something smart: detecti
scripts/cpplint.py:1084
↓ 4 callersFunctionReverseCloseExpression
If input points to ) or } or ] or >, finds the position that opens it. If lines[linenum][pos] points to a ')' or '}' or ']' or '>', finds the lin
scripts/cpplint.py:1691
↓ 4 callersFunctionjoin
* Block the current thread until the thread identified by id finishes its * execution. * * \param id * The id of the thread to join. This id m
src/Arachne.cc:823
↓ 4 callersMethodremove
Remove the Core Id at the given index in the list.
src/CorePolicy.h:104
↓ 4 callersMethodtry_lock
* Attempt to acquire this resource once. * \return * Whether or not the acquisition succeeded. */
src/Arachne.cc:1259
↓ 3 callersFunctionCheckCStyleCast
Checks for a C-style cast by looking for the pattern. Args: filename: The name of the current file. clean_lines: A CleansedLines instance c
scripts/cpplint.py:4992
↓ 3 callersFunctionCleanseComments
Removes //-comments and single-line C-style /* */ comments. Args: line: A line of C++ source. Returns: The line with single-line comment
scripts/cpplint.py:1381
↓ 3 callersFunctionFindEndOfExpressionInLine
Find the position just after the end of current parenthesized expression. Args: line: a CleansedLines line. startpos: start searching at th
scripts/cpplint.py:1492
↓ 3 callersFunctionGetIndentLevel
Return the number of leading spaces in line. Args: line: A string to check. Returns: An integer count of leading spaces, possibly zero.
scripts/cpplint.py:1742
↓ 3 callersMethodInnermostClass
Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.
scripts/cpplint.py:2609
↓ 3 callersFunctionIsBlankLine
Returns true if the given line is blank. We consider a line to be blank if the line is empty or consists of only white spaces. Args: line:
scripts/cpplint.py:2875
↓ 3 callersMethodSeenOpenBrace
Check if we have seen the opening brace for the innermost block. Returns: True if we have seen the opening brace, False if the innermost
scripts/cpplint.py:2295
↓ 3 callersMethodSplit
Splits the file into the directory, basename, and extension. For 'chrome/browser/browser.cc', Split() would return ('chrome/browser', 'browse
scripts/cpplint.py:1130
↓ 3 callersFunction_RestoreFilters
Restores filters previously backed up.
scripts/cpplint.py:1002
↓ 3 callersMethod__init__
(self, filename)
scripts/cpplint.py:1077
↓ 3 callersFunctionarachne_init
* This function is the wrapper for Arachne::init * * \return * The return value is 0 on success and -1 on error. Errno will be set */
cwrapper/arachne_wrapper.cc:34
↓ 3 callersFunctionarachne_thread_create
* This function is the wrapper for Arachne::createThread. * We have changed the interface due to no template support in C. * * \param id * Th
cwrapper/arachne_wrapper.cc:101
↓ 3 callersFunctioncheckForArbiterRequest
* Detect requests for cores from the core arbiter. */
src/Arachne.cc:1475
↓ 3 callersMethodclearHistory
* This function causes the estimator to behave as if running for the first * time, with no prior history. */
src/CoreLoadEstimator.cc:138
↓ 3 callersFunctioncreateThreadWithClass
src/Arachne.h:590
↓ 3 callersMethodnotifyAll
* Awaken all of the threads waiting on this condition variable. * The caller must hold the mutex that waiting threads held when they called * wait()
src/Arachne.cc:1307
↓ 3 callersMethodnotifyOne
* Awaken one of the threads waiting on this condition variable. * The caller must hold the mutex that waiting threads held when they called * wait()
src/Arachne.cc:1293
↓ 3 callersFunctionrandom
* A random number generator from the Internet that returns 64-bit integers. * It is used for selecting candidate cores to create threads on. */
src/Arachne.h:427
↓ 3 callersMethodupdatePerfStats
Invoke this method to insert the current counts for idle time and total time into PerfStats. This method is used in dispatch() in place of destruction
src/Arachne.cc:1379
↓ 2 callersMethodAddFilters
Adds more filters to the existing list of error-message filters.
scripts/cpplint.py:900
↓ 2 callersMethodBaseName
File base name - text after the final slash, before the final period.
scripts/cpplint.py:1144
↓ 2 callersMethodExtension
File extension - text following the final period.
scripts/cpplint.py:1148
↓ 2 callersFunctionFindStartOfExpressionInLine
Find position at the matching start of current expression. This is almost the reverse of FindEndOfExpressionInLine, but note that the input posit
scripts/cpplint.py:1614
↓ 2 callersMethodFullName
Make Windows paths like Unix.
scripts/cpplint.py:1080
↓ 2 callersFunctionGetHeaderGuardCPPVariable
Returns the CPP variable that should be used as a header guard. Args: filename: The name of a C++ header file. Returns: The CPP variable
scripts/cpplint.py:1758
↓ 2 callersFunctionGetLineWidth
Determines the width of the line in column positions. Args: line: A string, which may be a Unicode string. Returns: The width of the lin
scripts/cpplint.py:4063
↓ 2 callersFunctionProcessHppHeadersOption
(val)
scripts/cpplint.py:559
↓ 2 callersMethodResetSection
Reset section checking for preprocessor directive. Args: directive: preprocessor directive (e.g. "if", "else").
scripts/cpplint.py:739
↓ 2 callersFunction_DropCommonSuffixes
Drops common suffixes like _test.cc or -inl.h from filename. For example: >>> _DropCommonSuffixes('foo/foo-inl.h') 'foo/foo' >>> _DropC
scripts/cpplint.py:4213
↓ 2 callersFunction_SetVerboseLevel
Sets the module's verbosity, and returns the previous setting.
scripts/cpplint.py:959
↓ 2 callersFunction_VerboseLevel
Returns the module's verbosity setting.
scripts/cpplint.py:954
↓ 2 callersFunctionarachne_shutdown
* This function is the wrapper for Arachne::shutDown */
cwrapper/arachne_wrapper.cc:51
↓ 2 callersFunctionarachne_thread_join
* This function is the wrapper for Arachne::join. * * \param id * The pointer to the id of the thread to join. */
cwrapper/arachne_wrapper.cc:112
↓ 2 callersFunctionarachne_wait_termination
* This function is the wrapper for Arachne::waitForTermination */
cwrapper/arachne_wrapper.cc:59
↓ 2 callersMethodbacktrace
(self, threadContext, from_tty)
scripts/gdb-backtrace-arachne.py:16
↓ 2 callersFunctionblock
* Block the current thread until another thread invokes join() with the * current thread's ThreadId. */
src/Arachne.cc:738
↓ 2 callersFunctionchooseCore
Select a reasonably unloaded core from coreList using randomness with refinement. This function is defined here to facilitate testing; defining it in
src/Arachne.h:460
↓ 2 callersFunctioncompareExchange
* Perform a atomic compare_exchange operation on a 64-bit value, returning the * old value. This is useful for performing atomic CAS operations on no
src/Arachne.cc:755
↓ 2 callersMethodcoreUnavailable
* See documentation in CorePolicy. */
src/DefaultCorePolicy.cc:65
↓ 2 callersFunctionctest_system
* A wrapper to run a command with system() function */
cwrapper/arachne_wrapper_ctest.c:34
↓ 2 callersFunctiondeinitializeCore
* Release resources allocated during initializeCore(). */
src/Arachne.cc:245
↓ 2 callersFunctionfindAndClaimUnusedCore
* Look for any core which is entirely unoccupied, remove it from the given * CoreList and return its Id. */
src/Arachne.cc:1748
↓ 2 callersMethodgetEstimator
src/DefaultCorePolicy.cc:118
↓ 2 callersFunctionidleCore
* Put the core into the most quiescent possible state to minimize performance * interference with the hypertwin. Note that a core only becomes unidle
src/Arachne.cc:1688
↓ 2 callersFunctioninitializeCore
* Initialize thread local data structures that will later be "registered" * in a global array depending on the real core id assigned by the core * a
src/Arachne.cc:221
↓ 2 callersMethodinitializeStack
* This method initializes a stack so that when the dispatcher context switches * back to this Arachne thread, the thread will resume execution at the
src/Arachne.cc:987
↓ 2 callersMethodrestoreKernelThread
(self, from_tty)
scripts/gdb-thread-arachne.py:16
↓ 2 callersFunctionunidleCore
* Unidle an core. If it was not idle, the next call to idleCore will not idle * the core. * * \param coreId * The coreId of the core that will
src/Arachne.cc:1715
↓ 2 callersMethodwait
* Block until another thread notifies. */
src/Arachne.cc:1341
↓ 1 callersMethodBackupFilters
Saves the current filter list to backup storage.
scripts/cpplint.py:911
↓ 1 callersMethodBegin
Start analyzing function body. Args: function_name: The name of the function being tracked.
scripts/cpplint.py:1017
↓ 1 callersMethodCanonicalizeAlphabeticalOrder
Returns a path canonicalized for alphabetical comparison. - replaces "-" with "_" so they both cmp the same. - removes '-inl' since we don't
scripts/cpplint.py:760
↓ 1 callersMethodCheck
Report if too many lines in function body. Args: error: The function to call with any errors found. filename: The name of the current
scripts/cpplint.py:1032
↓ 1 callersFunctionCheckAccess
Checks for improper use of DISALLOW* macros. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing
scripts/cpplint.py:3029
↓ 1 callersFunctionCheckAltTokens
Check alternative keywords being used in boolean expressions. Args: filename: The name of the current file. clean_lines: A CleansedLines in
scripts/cpplint.py:4031
↓ 1 callersMethodCheckBegin
Run checks that applies to text up to the opening brace. This is mostly for checking the text after the class identifier and the "{", usually
scripts/cpplint.py:2078
↓ 1 callersFunctionCheckBraces
Looks for misplaced braces (e.g. at the end of line). Args: filename: The name of the current file. clean_lines: A CleansedLines instance c
scripts/cpplint.py:3624
↓ 1 callersFunctionCheckBracesSpacing
Checks for horizontal spacing near commas. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
scripts/cpplint.py:3439
↓ 1 callersFunctionCheckCasts
Various cast related checks. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. l
scripts/cpplint.py:4873
↓ 1 callersFunctionCheckCheck
Checks the use of CHECK and EXPECT macros. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
scripts/cpplint.py:3913
↓ 1 callersFunctionCheckCommaSpacing
Checks for horizontal spacing near commas and semicolons. Args: filename: The name of the current file. clean_lines: A CleansedLines instan
scripts/cpplint.py:3340
↓ 1 callersFunctionCheckComment
Checks for common mistakes in comments. Args: line: The line in question. filename: The name of the current file. linenum: The number o
scripts/cpplint.py:2975
↓ 1 callersMethodCheckCompletedBlocks
Checks that all classes and namespaces have been completely parsed. Call this when all lines in a file have been processed. Args: filen
scripts/cpplint.py:2621
↓ 1 callersMethodCheckEnd
Run checks that applies to text after the closing brace. This is mostly used for checking end of namespace comments. Args: filename: T
scripts/cpplint.py:2093
↓ 1 callersFunctionCheckForBadCharacters
Logs an error for each line containing bad characters. Two kinds of bad characters: 1. Unicode replacement characters: These indicate that eithe
scripts/cpplint.py:1871
next →1–100 of 336, ranked by callers