Skip to contentSkip to conversation

libtracefs: Remove -d option from libtracefs-sql sqlhist example

PATCH New Steven Rostedt 1 participant 1 message Aug 12, 2021 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtracefs: Remove -d option from libtracefs-sql sqlhist example

From: "Steven Rostedt (VMware)" <[email protected]>

The sqlhist example code does not delete the synthetic event, and the -d option is ignored. It was added by mistake from copying from other example code.

---
 Documentation/libtracefs-sql.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Documentation/libtracefs-sql.txt +1 -2
index 91c99d7..35ccaf5 100644
@@ -309,7 +309,6 @@ static void usage(char **argv)
 		"  -n name - name of synthetic event 'Anonymous' if left off\n"
 		"  -t dir - use dir instead of /sys/kernel/tracing\n"
 		"  -e - execute the commands to create the synthetic event\n"
-		"  -d - delete the synthetic event that would be created\n"
 		"  -f file - read sql lines from file otherwise from the command line\n"
 		"            if file is '-' then read from standard input.\n",
 		argv[0]);
@@ -383,7 +382,7 @@ int main (int argc, char **argv)
 	int i;
 
 	for (;;) {
-		c = getopt(argc, argv, "ht:f:edn:");
+		c = getopt(argc, argv, "ht:f:en:");
 		if (c == -1)
 			break;
 
Signature · 1 line
2.31.1