Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
5a0dbcf8
Commit
5a0dbcf8
authored
8 years ago
by
4ast
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #481 from iovisor/ast_dev
bcc-lua: switch to quiet by default
parents
b6e0a545
fca28a59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/lua/bcc/run.lua
src/lua/bcc/run.lua
+3
-3
src/lua/bcc/vendor/helpers.lua
src/lua/bcc/vendor/helpers.lua
+1
-1
No files found.
src/lua/bcc/run.lua
View file @
5a0dbcf8
...
...
@@ -20,7 +20,7 @@ return function()
local
function
print_usage
()
io.stderr
:
write
(
string.format
(
"usage: %s [[--so-path=PATH|--version|--
quiet
] --] path_to_script.lua [...]\n"
,
"usage: %s [[--so-path=PATH|--version|--
verbose
] --] path_to_script.lua [...]\n"
,
progname
))
os.exit
(
1
)
end
...
...
@@ -41,8 +41,8 @@ return function()
rawset
(
_G
,
"LIBBCC_SO_PATH"
,
string
.
lstrip
(
k
,
"--so-path="
))
elseif
k
==
"--llvm-debug"
then
rawset
(
_G
,
"LIBBCC_LLVM_DEBUG"
,
1
)
elseif
k
==
"-
q"
or
k
==
"--quiet
"
then
log
.
enabled
=
fals
e
elseif
k
==
"-
V"
or
k
==
"--verbose
"
then
log
.
enabled
=
tru
e
elseif
k
==
"-v"
or
k
==
"--version"
then
print_version
()
else
...
...
This diff is collapsed.
Click to expand it.
src/lua/bcc/vendor/helpers.lua
View file @
5a0dbcf8
...
...
@@ -169,5 +169,5 @@ setmetatable(_G, {
end
,
})
rawset
(
_G
,
"log"
,
{
info
=
logline
,
enabled
=
tru
e
})
rawset
(
_G
,
"log"
,
{
info
=
logline
,
enabled
=
fals
e
})
rawset
(
_G
,
"class"
,
require
(
"bcc.vendor.middleclass"
))
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment