Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] [PATCH babeltrace 1/2] Add missing shebangs to	Python examples.
Date: Wed, 23 Jan 2013 09:45:50 -0500	[thread overview]
Message-ID: <20130123144550.GA3952@Krystal> (raw)
In-Reply-To: <1358898446-1622-1-git-send-email-jeremie.galarneau@efficios.com>

* J?r?mie Galarneau (jeremie.galarneau at efficios.com) wrote:
> 
> Signed-off-by: J?r?mie Galarneau <jeremie.galarneau at efficios.com>
> ---
>  bindings/python/examples/babeltrace_and_lttng.py | 1 +
>  bindings/python/examples/eventcount.py           | 1 +
>  bindings/python/examples/eventcountlist.py       | 1 +
>  bindings/python/examples/events_per_cpu.py       | 1 +
>  bindings/python/examples/example-api-test.py     | 1 +
>  bindings/python/examples/histogram.py            | 1 +
>  bindings/python/examples/sched_switch.py         | 1 +
>  bindings/python/examples/softirqtimes.py         | 1 +
>  bindings/python/examples/syscalls_by_pid.py      | 1 +
>  9 files changed, 9 insertions(+)
>  mode change 100644 => 100755 bindings/python/examples/babeltrace_and_lttng.py
>  mode change 100644 => 100755 bindings/python/examples/eventcount.py
>  mode change 100644 => 100755 bindings/python/examples/eventcountlist.py
>  mode change 100644 => 100755 bindings/python/examples/events_per_cpu.py
>  mode change 100644 => 100755 bindings/python/examples/example-api-test.py
>  mode change 100644 => 100755 bindings/python/examples/histogram.py
>  mode change 100644 => 100755 bindings/python/examples/sched_switch.py
>  mode change 100644 => 100755 bindings/python/examples/softirqtimes.py
>  mode change 100644 => 100755 bindings/python/examples/syscalls_by_pid.py
> 
> diff --git a/bindings/python/examples/babeltrace_and_lttng.py b/bindings/python/examples/babeltrace_and_lttng.py
> old mode 100644
> new mode 100755
> index cb44796..5ab358c
> --- a/bindings/python/examples/babeltrace_and_lttng.py
> +++ b/bindings/python/examples/babeltrace_and_lttng.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python

Please compare with other lttng projects (see tools tests), where I
think we use "env" and then python. So I'm not sure which roule we want
to go, but I think this has to do with Debian not having the same
symlinks that other distros wrt python 2 and 3.

Thanks,

Mathieu

>  # babeltrace_and_lttng.py
>  # 
>  # Babeltrace and LTTng example script
> diff --git a/bindings/python/examples/eventcount.py b/bindings/python/examples/eventcount.py
> old mode 100644
> new mode 100755
> index 5e96a43..0cc9e19
> --- a/bindings/python/examples/eventcount.py
> +++ b/bindings/python/examples/eventcount.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # eventcount.py
>  # 
>  # Babeltrace event count example script
> diff --git a/bindings/python/examples/eventcountlist.py b/bindings/python/examples/eventcountlist.py
> old mode 100644
> new mode 100755
> index 945a960..eb413a8
> --- a/bindings/python/examples/eventcountlist.py
> +++ b/bindings/python/examples/eventcountlist.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # eventcountlist.py
>  # 
>  # Babeltrace event count list example script
> diff --git a/bindings/python/examples/events_per_cpu.py b/bindings/python/examples/events_per_cpu.py
> old mode 100644
> new mode 100755
> index be497ec..7e871d1
> --- a/bindings/python/examples/events_per_cpu.py
> +++ b/bindings/python/examples/events_per_cpu.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # events_per_cpu.py
>  # 
>  # Babeltrace events per cpu example script
> diff --git a/bindings/python/examples/example-api-test.py b/bindings/python/examples/example-api-test.py
> old mode 100644
> new mode 100755
> index 104f2d5..37e9f4b
> --- a/bindings/python/examples/example-api-test.py
> +++ b/bindings/python/examples/example-api-test.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # example_api_test.py
>  # 
>  # Babeltrace example script based on the Babeltrace API test script
> diff --git a/bindings/python/examples/histogram.py b/bindings/python/examples/histogram.py
> old mode 100644
> new mode 100755
> index 44616a6..533abeb
> --- a/bindings/python/examples/histogram.py
> +++ b/bindings/python/examples/histogram.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # histogram.py
>  # 
>  # Babeltrace histogram example script
> diff --git a/bindings/python/examples/sched_switch.py b/bindings/python/examples/sched_switch.py
> old mode 100644
> new mode 100755
> index 7ae834b..cee882f
> --- a/bindings/python/examples/sched_switch.py
> +++ b/bindings/python/examples/sched_switch.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # sched_switch.py
>  # 
>  # Babeltrace example script with sched_switch events
> diff --git a/bindings/python/examples/softirqtimes.py b/bindings/python/examples/softirqtimes.py
> old mode 100644
> new mode 100755
> index 903bf3e..8e465d2
> --- a/bindings/python/examples/softirqtimes.py
> +++ b/bindings/python/examples/softirqtimes.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # softirqtimes.py
>  # 
>  # Babeltrace time of softirqs example script
> diff --git a/bindings/python/examples/syscalls_by_pid.py b/bindings/python/examples/syscalls_by_pid.py
> old mode 100644
> new mode 100755
> index 3ae342e..30ece11
> --- a/bindings/python/examples/syscalls_by_pid.py
> +++ b/bindings/python/examples/syscalls_by_pid.py
> @@ -1,3 +1,4 @@
> +#!/usr/bin/python
>  # syscall_by_pid.py
>  # 
>  # Babeltrace syscall by pid example script
> -- 
> 1.8.1.1
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



  parent reply	other threads:[~2013-01-23 14:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22 23:47 Jérémie Galarneau
2013-01-22 23:47 ` [lttng-dev] [PATCH babeltrace 2/2] Fix: Unified types expected by the Definition Python interface Jérémie Galarneau
2013-01-25 16:39   ` Mathieu Desnoyers
2013-01-23 14:45 ` Mathieu Desnoyers [this message]
2013-01-23 17:05   ` [lttng-dev] [PATCH babeltrace 1/2] Add missing shebangs to Python examples Christian Babeux
     [not found]     ` <CA+jJMxvqEXqgK8oMmJZT5WKiKuNYm7Wws47QOi=e2wzYnaKH8A@mail.gmail.com>
2013-01-25 16:03       ` Jérémie Galarneau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130123144550.GA3952@Krystal \
    --to=mathieu.desnoyers@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox